Skip to content

Commit

Permalink
Rename reactnative.a -> react_cxxreact.a (#43859)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #43859

This frees up the `reactnative` CMake target so we could use it as single .so
for the CMake build.

Changelog:
[Internal] [Changed] - Rename reactnative.a -> react_cxxreact.a

Reviewed By: javache

Differential Revision: D55745640

fbshipit-source-id: 3cad512cc07a277af2a0cea696863c85a17dabc1
  • Loading branch information
cortinico authored and facebook-github-bot committed Apr 5, 2024
1 parent 041bca4 commit 03c75c2
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ add_executable(reactnative_unittest
hermes-engine::libhermes
hermes_inspector_modern
jsi
react_cxxreact
react_codegen_rncore
react_debug
react_render_animations
Expand All @@ -217,7 +218,6 @@ add_executable(reactnative_unittest
react_render_textlayoutmanager
react_render_uimanager
react_utils
reactnative
rrc_modal
rrc_scrollview
rrc_text
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ target_link_libraries(reactnativejni
folly_runtime
glog_init
logger
react_cxxreact
react_render_runtimescheduler
reactnative
runtimeexecutor
yoga
)
8 changes: 4 additions & 4 deletions packages/react-native/ReactCommon/cxxreact/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ add_compile_options(
-Wno-unused-lambda-capture
-DLOG_TAG=\"ReactNative\")

file(GLOB reactnative_SRC CONFIGURE_DEPENDS *.cpp)
add_library(reactnative STATIC ${reactnative_SRC})
file(GLOB react_cxxreact_SRC CONFIGURE_DEPENDS *.cpp)
add_library(react_cxxreact STATIC ${react_cxxreact_SRC})

target_include_directories(reactnative PUBLIC ${REACT_COMMON_DIR})
target_include_directories(react_cxxreact PUBLIC ${REACT_COMMON_DIR})

target_link_libraries(reactnative
target_link_libraries(react_cxxreact
boost
callinvoker
folly_runtime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ add_library(jsireact
target_include_directories(jsireact PUBLIC .)

target_link_libraries(jsireact
reactnative
react_cxxreact
reactperflogger
folly_runtime
glog
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ target_include_directories(react_nativemodule_dom PUBLIC ${REACT_COMMON_DIR})

target_link_libraries(react_nativemodule_dom
rrc_root
react_codegen_rncore
react_cxxreact
react_render_dom
react_render_uimanager
react_codegen_rncore
reactnative)
)
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ add_library(react_nativemodule_featureflags SHARED ${react_nativemodule_featuref
target_include_directories(react_nativemodule_featureflags PUBLIC ${REACT_COMMON_DIR})

target_link_libraries(react_nativemodule_featureflags
react_featureflags
react_codegen_rncore
reactnative)
react_cxxreact
react_featureflags
)
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ target_include_directories(react_nativemodule_microtasks PUBLIC ${REACT_COMMON_D

target_link_libraries(react_nativemodule_microtasks
react_codegen_rncore
reactnative)
react_cxxreact
)
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ target_link_libraries(react_render_uimanager
glog
folly_runtime
jsi
react_config
react_cxxreact
react_debug
react_featureflags
react_render_componentregistry
Expand All @@ -36,8 +38,6 @@ target_link_libraries(react_render_uimanager
react_render_leakchecker
react_render_runtimescheduler
react_render_mounting
react_config
reactnative
rrc_root
rrc_view
runtimeexecutor
Expand Down

0 comments on commit 03c75c2

Please sign in to comment.