Skip to content

Commit 1c08b38

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_nativemodule_webperformance cmake
Summary: Changelog: [Internal] Add cmake library react_nativemodule_webperformance Differential Revision: D77035999
1 parent abd03f2 commit 1c08b38

File tree

1 file changed

+21
-0
lines changed
  • packages/react-native/ReactCommon/react/nativemodule/webperformance

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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_nativemodule_webperformance_SRC CONFIGURE_DEPENDS *.cpp)
12+
add_library(react_nativemodule_webperformance OBJECT ${react_nativemodule_webperformance_SRC})
13+
14+
target_include_directories(react_nativemodule_webperformance PUBLIC ${REACT_COMMON_DIR})
15+
16+
target_link_libraries(react_nativemodule_webperformance
17+
react_codegen_rncore
18+
react_cxxreact
19+
)
20+
target_compile_reactnative_options(react_nativemodule_webperformance PRIVATE)
21+
target_compile_options(react_nativemodule_webperformance PRIVATE -Wpedantic)

0 commit comments

Comments
 (0)