mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Setup Globbing with CONFIGURE_DEPENDS inside CMake files.
Summary: This Diff moves from specifying a list of files to use file(GLOB) with CONFIGURE_DEPENDS on several CMakefiles. I've updates those where we use globbing also inside buck. Changelog: [Internal] [Changed] - Setup Globbing with CONFIGURE_DEPENDS inside CMake files Reviewed By: ShikaSD Differential Revision: D34826311 fbshipit-source-id: 8fc654626c897cdc4cdd79c699ce19f1e5e1212f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
75de6d46e3
commit
e12bc9cf62
@@ -3,17 +3,15 @@
|
||||
# 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.4.1)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"Fabric\")
|
||||
|
||||
add_library(
|
||||
mapbufferjni
|
||||
SHARED
|
||||
react/common/mapbuffer/OnLoad.cpp
|
||||
react/common/mapbuffer/ReadableMapBuffer.cpp
|
||||
)
|
||||
file(GLOB mapbuffer_SRC CONFIGURE_DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/react/common/mapbuffer/*.cpp)
|
||||
|
||||
add_library(mapbufferjni SHARED ${mapbuffer_SRC})
|
||||
|
||||
target_include_directories(mapbufferjni
|
||||
PUBLIC
|
||||
|
||||
@@ -3,12 +3,13 @@
|
||||
# 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.4.1)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fvisibility=hidden -fexceptions -frtti)
|
||||
|
||||
add_library(jscexecutor SHARED OnLoad.cpp)
|
||||
file(GLOB jscexecutor_SRC CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
add_library(jscexecutor SHARED ${jscexecutor_SRC})
|
||||
|
||||
target_include_directories(jscexecutor PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
||||
@@ -3,14 +3,13 @@
|
||||
# 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.4.1)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fvisibility=hidden -fexceptions -frtti)
|
||||
|
||||
add_library(reactnativeblob SHARED
|
||||
BlobCollector.cpp
|
||||
OnLoad.cpp)
|
||||
file(GLOB reactnativeblob_SRC CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
add_library(reactnativeblob SHARED ${reactnativeblob_SRC})
|
||||
|
||||
target_include_directories(reactnativeblob PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# 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.4.1)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
# 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.4.1)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(
|
||||
|
||||
@@ -3,14 +3,13 @@
|
||||
# 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.4.1)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
set(CMAKE_VERBOSE_MAKEFILE on)
|
||||
|
||||
add_compile_options(-fexceptions -frtti -std=c++17 -Wall -DLOG_TAG=\"ReactNative\")
|
||||
|
||||
add_library(uimanagerjni SHARED
|
||||
OnLoad.cpp
|
||||
ComponentNameResolverManager.cpp)
|
||||
file(GLOB uimanagerjni_SRC CONFIGURE_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||
add_library(uimanagerjni SHARED ${uimanagerjni_SRC})
|
||||
|
||||
target_include_directories(uimanagerjni PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user