Skip to content

Commit

Permalink
Re-apply main changes to CMake files
Browse files Browse the repository at this point in the history
Summary:
This Diff re-applies some of the changes that landed on main
to the CMake files we currently landed so far.

Changelog:
[Internal] [Changed] - Re-apply main changes to CMake files

Reviewed By: ShikaSD

Differential Revision: D34859685

fbshipit-source-id: 772a3aed05f56b6fbb2942bf9d1a5bd4581b48d5
  • Loading branch information
cortinico authored and Saadnajmi committed Jan 14, 2023
1 parent 4419067 commit ee2ac12
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
17 changes: 17 additions & 0 deletions ReactCommon/react/bridging/CMakeLists.txt
@@ -0,0 +1,17 @@
# 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)

add_compile_options(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"ReactNative\")

file(GLOB react_bridging_SRC CONFIGURE_DEPENDS *.cpp)

add_library(react_bridging STATIC ${react_bridging_SRC})

target_include_directories(react_bridging PUBLIC ${REACT_COMMON_DIR})

target_link_libraries(react_bridging jsi)
1 change: 1 addition & 0 deletions ReactCommon/react/nativemodule/core/CMakeLists.txt
Expand Up @@ -26,6 +26,7 @@ target_link_libraries(react_nativemodule_core
fbjni
folly_json
jsi
react_bridging
react_debug
reactperflogger
reactnativejni)
3 changes: 1 addition & 2 deletions ReactCommon/react/utils/CMakeLists.txt
Expand Up @@ -21,5 +21,4 @@ target_include_directories(react_utils PUBLIC ${REACT_COMMON_DIR})
target_link_libraries(react_utils
glog
glog_init
react_debug
react_render_mapbuffer)
react_debug)

0 comments on commit ee2ac12

Please sign in to comment.