Skip to content

Commit b4233bf

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_logging cmake (facebook#52170)
Summary: Changelog: [Internal] Add cmake lib react_cxx_platform_react_logging Differential Revision: D77037715
1 parent 0ae5d1a commit b4233bf

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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_logging_SRC CONFIGURE_DEPENDS *.cpp)
12+
add_library(react_cxx_platform_react_logging OBJECT ${react_cxx_platform_react_logging_SRC})
13+
14+
target_include_directories(react_cxx_platform_react_logging PUBLIC ${REACT_CXX_PLATFORM_DIR})
15+
16+
target_link_libraries(react_cxx_platform_react_logging
17+
glog
18+
react_codegen_rncore
19+
jserrorhandler
20+
react_bridging
21+
logger
22+
)
23+
target_compile_reactnative_options(react_cxx_platform_react_logging PRIVATE)
24+
target_compile_options(react_cxx_platform_react_logging PRIVATE -Wpedantic)

0 commit comments

Comments
 (0)