Skip to content

Commit f04d1f1

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_runtime cmake (#52178)
Summary: Pull Request resolved: #52178 Changelog: [Internal] Add cmake lib react_cxx_platform_react_runtime Reviewed By: christophpurrer Differential Revision: D77038450 fbshipit-source-id: 54515f1aff84632c8a86abd8970107a1bd8ca043
1 parent 54a1e41 commit f04d1f1

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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_runtime_SRC CONFIGURE_DEPENDS *.cpp platform/cxx/react/runtime/*.cpp)
12+
add_library(react_cxx_platform_react_runtime OBJECT ${react_cxx_platform_react_runtime_SRC})
13+
14+
target_include_directories(react_cxx_platform_react_runtime
15+
PUBLIC
16+
${REACT_CXX_PLATFORM_DIR}
17+
${CMAKE_CURRENT_SOURCE_DIR}/platform/cxx/)
18+
19+
target_link_libraries(react_cxx_platform_react_runtime
20+
bridgeless
21+
bridgelesshermes
22+
callinvoker
23+
glog
24+
jserrorhandler
25+
jsinspector
26+
react_codegen_rncore
27+
react_cxx_platform_react_coremodules
28+
react_cxx_platform_react_devsupport
29+
react_cxx_platform_react_devsupport
30+
react_cxx_platform_react_http
31+
react_cxx_platform_react_io
32+
react_cxx_platform_react_logging
33+
react_cxx_platform_react_nativemodule
34+
react_cxx_platform_react_renderer_animated
35+
react_cxx_platform_react_renderer_uimanager
36+
react_cxx_platform_react_threading
37+
react_cxx_platform_react_utils
38+
react_cxxreact
39+
react_debug
40+
react_nativemodule_core
41+
react_nativemodule_defaults
42+
react_nativemodule_intersectionobserver
43+
react_nativemodule_mutationobserver
44+
react_nativemodule_webperformance
45+
react_renderer_graphics
46+
react_renderer_runtimescheduler
47+
react_renderer_scheduler
48+
rrc_native
49+
rrc_view
50+
)
51+
target_compile_reactnative_options(react_cxx_platform_react_runtime PRIVATE)
52+
target_compile_options(react_cxx_platform_react_runtime PRIVATE -Wpedantic -Wno-deprecated-declarations)

packages/react-native/ReactCxxPlatform/react/runtime/platform/cxx/PlatformTimerRegistryImpl.cpp renamed to packages/react-native/ReactCxxPlatform/react/runtime/platform/cxx/react/runtime/PlatformTimerRegistryImpl.cpp

File renamed without changes.

packages/react-native/ReactCxxPlatform/react/runtime/platform/cxx/PlatformTimerRegistryImpl.h renamed to packages/react-native/ReactCxxPlatform/react/runtime/platform/cxx/react/runtime/PlatformTimerRegistryImpl.h

File renamed without changes.

0 commit comments

Comments
 (0)