Skip to content

Commit c96fa13

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_nativemodule_fantomspecificmethods cmake (facebook#52159)
Summary: Changelog: [Internal] Add missing cmake target for react_nativemodule_fantomspecificmethods Differential Revision: D77035521
1 parent 7a7f2ac commit c96fa13

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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 internal/*.cpp)
12+
add_library(react_nativemodule_fantomspecificmethods OBJECT ${react_nativemodule_webperformance_SRC})
13+
14+
target_include_directories(react_nativemodule_fantomspecificmethods PUBLIC ${REACT_COMMON_DIR})
15+
target_include_directories(react_nativemodule_fantomspecificmethods PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/internal)
16+
17+
target_link_libraries(react_nativemodule_fantomspecificmethods
18+
react_codegen_rncore
19+
react_cxxreact
20+
react_renderer_bridging
21+
react_renderer_core
22+
react_renderer_graphics
23+
react_renderer_observers_intersection
24+
react_renderer_runtimescheduler
25+
react_renderer_uimanager
26+
rrc_view
27+
)
28+
target_compile_reactnative_options(react_nativemodule_fantomspecificmethods PRIVATE)
29+
target_compile_options(react_nativemodule_fantomspecificmethods PRIVATE -Wpedantic -Wno-deprecated-declarations)

packages/react-native/ReactCommon/react/nativemodule/fantomtestspecificmethods/NativeFantomTestSpecificMethods.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
#include "internal/FantomForcedCloneCommitHook.h"
1313

14+
#if RN_DISABLE_OSS_PLUGIN_HEADER
1415
#include "Plugins.h"
16+
#endif
1517

1618
std::shared_ptr<facebook::react::TurboModule>
1719
NativeFantomTestSpecificMethodsModuleProvider(

0 commit comments

Comments
 (0)