Skip to content

Commit dda8ab6

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_threading cmake (#52176)
Summary: Pull Request resolved: #52176 Changelog: [Internal] Add cmake lib react_cxx_platform_react_threading Reviewed By: christophpurrer Differential Revision: D77038544 fbshipit-source-id: 950e28af49c5de3870e11e03d5123f22a0f04a6b
1 parent f04d1f1 commit dda8ab6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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_threading_SRC CONFIGURE_DEPENDS *.cpp)
12+
add_library(react_cxx_platform_react_threading OBJECT ${react_cxx_platform_react_threading_SRC})
13+
14+
target_include_directories(react_cxx_platform_react_threading PUBLIC ${REACT_CXX_PLATFORM_DIR})
15+
16+
target_link_libraries(react_cxx_platform_react_threading
17+
folly_runtime
18+
react_cxxreact
19+
)
20+
target_compile_reactnative_options(react_cxx_platform_react_threading PRIVATE)
21+
target_compile_options(react_cxx_platform_react_threading PRIVATE -Wpedantic)

0 commit comments

Comments
 (0)