|
| 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) |
0 commit comments