mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add react_cxx_platform_react_threading cmake (#52176)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52176 Changelog: [Internal] Add cmake lib react_cxx_platform_react_threading Reviewed By: christophpurrer Differential Revision: D77038544 fbshipit-source-id: 950e28af49c5de3870e11e03d5123f22a0f04a6b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f04d1f1ef7
commit
dda8ab69d4
@@ -0,0 +1,21 @@
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
#
|
||||
# This source code is licensed under the MIT license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
include(${REACT_COMMON_DIR}/cmake-utils/react-native-flags.cmake)
|
||||
|
||||
file(GLOB react_cxx_platform_react_threading_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(react_cxx_platform_react_threading OBJECT ${react_cxx_platform_react_threading_SRC})
|
||||
|
||||
target_include_directories(react_cxx_platform_react_threading PUBLIC ${REACT_CXX_PLATFORM_DIR})
|
||||
|
||||
target_link_libraries(react_cxx_platform_react_threading
|
||||
folly_runtime
|
||||
react_cxxreact
|
||||
)
|
||||
target_compile_reactnative_options(react_cxx_platform_react_threading PRIVATE)
|
||||
target_compile_options(react_cxx_platform_react_threading PRIVATE -Wpedantic)
|
||||
Reference in New Issue
Block a user