Skip to content

Commit 0c45ffe

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_profiling cmake
Summary: Changelog: [Internal] Add cmake lib react_cxx_platform_react_profiling Differential Revision: D77037934
1 parent 51cd06d commit 0c45ffe

File tree

1 file changed

+22
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)