Skip to content

Commit 3345682

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_coremodules cmake (facebook#52165)
Summary: Changelog: [Internal] Add cmake lib react_cxx_platform_react_coremodules Differential Revision: D77036283
1 parent 96979a4 commit 3345682

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

  • packages/react-native/ReactCxxPlatform/react/coremodules
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Copyright (c) Meta Platforms, Inc. and affiliates.
2+
#
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
6+
cmake_minimum_required(VERSION 3.13)
7+
set(CMAKE_VERBOSE_MAKEFILE on)
8+
​​​
9+
include(${REACT_COMMON_DIR}/cmake-utils/react-native-flags.cmake)
10+
​​​
11+
file(GLOB react_cxx_platform_react_coremodules_SRC CONFIGURE_DEPENDS *.cpp)
12+
add_library(react_cxx_platform_react_coremodules OBJECT ${react_cxx_platform_react_coremodules_SRC})
13+
​​​
14+
target_include_directories(react_cxx_platform_react_coremodules PUBLIC ${REACT_CXX_PLATFORM_DIR})
15+
​​​
16+
target_link_libraries(react_cxx_platform_react_coremodules
17+
folly_runtime
18+
jsi
19+
react_nativemodule_core
20+
react_codegen_rncore
21+
)
22+
target_compile_reactnative_options(react_cxx_platform_react_coremodules PRIVATE)
23+
target_compile_options(react_cxx_platform_react_coremodules PRIVATE -Wpedantic)

0 commit comments

Comments
 (0)