Skip to content

Commit eb07c14

Browse files
andrewdacenkofacebook-github-bot
authored andcommitted
Add react_cxx_platform_react_io cmake (facebook#52169)
Summary: Changelog: [Internal] Add cmake lib react_cxx_platform_react_io Differential Revision: D77037593
1 parent f25c3ba commit eb07c14

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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_io_SRC CONFIGURE_DEPENDS *.cpp platform/cxx/*.cpp)
12+
add_library(react_cxx_platform_react_io OBJECT ${react_cxx_platform_react_io_SRC})
13+
14+
target_include_directories(react_cxx_platform_react_io PUBLIC ${REACT_CXX_PLATFORM_DIR})
15+
16+
target_link_libraries(react_cxx_platform_react_io
17+
glog
18+
jsi
19+
react_cxx_platform_react_nativemodule
20+
react_cxx_platform_react_http
21+
react_cxx_platform_react_threading
22+
react_codegen_rncore
23+
react_bridging
24+
)
25+
target_compile_reactnative_options(react_cxx_platform_react_io PRIVATE)
26+
target_compile_options(react_cxx_platform_react_io PRIVATE -Wpedantic)

packages/react-native/ReactCxxPlatform/react/io/platform/cxx/ResourceLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
#include "ResourceLoader.h"
8+
#include <react/io/ResourceLoader.h>
99

1010
#include <cassert>
1111
#include <fstream>

0 commit comments

Comments
 (0)