mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add react_cxx_platform_react_http cmake (#52167)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/52167 Changelog: [Internal] Add cmake lib react_cxx_platform_react_http Reviewed By: christophpurrer Differential Revision: D77037486 fbshipit-source-id: 7e90ed26cefa407a1e64ebdad8ac5835803c2c49
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0a7e1342cd
commit
71d6d86ed6
@@ -0,0 +1,20 @@
|
||||
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
||||
#
|
||||
# This source code is licensed under the MIT license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
include(${REACT_COMMON_DIR}/cmake-utils/react-native-flags.cmake)
|
||||
|
||||
file(GLOB react_cxx_platform_react_http_SRC CONFIGURE_DEPENDS *.cpp)
|
||||
add_library(react_cxx_platform_react_http OBJECT ${react_cxx_platform_react_http_SRC})
|
||||
|
||||
target_include_directories(react_cxx_platform_react_http PUBLIC ${REACT_CXX_PLATFORM_DIR})
|
||||
|
||||
target_link_libraries(react_cxx_platform_react_http
|
||||
folly_runtime
|
||||
)
|
||||
target_compile_reactnative_options(react_cxx_platform_react_http PRIVATE)
|
||||
target_compile_options(react_cxx_platform_react_http PRIVATE -Wpedantic)
|
||||
Reference in New Issue
Block a user