Skip to content

Commit 9cce135

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_nativemodule_mutationobserver cmake (facebook#52161)
Summary: Changelog: [Internal] Add missing lib react_nativemodule_mutationobserver Differential Revision: D77035742
1 parent ede522f commit 9cce135

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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_mutationobserver OBJECT ${react_nativemodule_webperformance_SRC})
13+
​​​
14+
target_include_directories(react_nativemodule_mutationobserver PUBLIC ${REACT_COMMON_DIR})
15+
​​​
16+
target_link_libraries(react_nativemodule_mutationobserver
17+
react_codegen_rncore
18+
react_renderer_bridging
19+
react_renderer_core
20+
react_renderer_uimanager
21+
react_featureflags
22+
react_renderer_observers_mutation
23+
react_cxxreact
24+
rrc_view
25+
)
26+
target_compile_reactnative_options(react_nativemodule_mutationobserver PRIVATE)
27+
target_compile_options(react_nativemodule_mutationobserver PRIVATE -Wpedantic)

packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@
1212
#include <react/renderer/uimanager/UIManagerBinding.h>
1313
#include <react/renderer/uimanager/primitives.h>
1414

15+
#ifdef RN_DISABLE_OSS_PLUGIN_HEADER
1516
#include "Plugins.h"
17+
#endif
1618

1719
std::shared_ptr<facebook::react::TurboModule>
1820
NativeMutationObserverModuleProvider(

0 commit comments

Comments
 (0)