mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 09:45:04 +00:00
Avoid top-level read_config invocations.
Reviewed By: danzimm Differential Revision: D7651745 fbshipit-source-id: 5cbc82b3c9da3ab514278d438f97f98e19946dc7
This commit is contained in:
parent
b5f90ed497
commit
1433d15557
@ -1,5 +1,5 @@
|
|||||||
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_xplat_cxx_library", "ANDROID_INSPECTOR_FLAGS", "APPLE_INSPECTOR_FLAGS", "ANDROID_JSC_DEPS", "APPLE_JSC_DEPS", "react_native_xplat_target")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_xplat_cxx_library", "get_android_inspector_flags", "get_apple_inspector_flags", "ANDROID_JSC_DEPS", "APPLE_JSC_DEPS", "react_native_xplat_target")
|
||||||
|
|
||||||
CXX_LIBRARY_COMPILER_FLAGS = [
|
CXX_LIBRARY_COMPILER_FLAGS = [
|
||||||
"-std=c++14",
|
"-std=c++14",
|
||||||
@ -129,7 +129,7 @@ rn_xplat_cxx_library(
|
|||||||
"-frtti",
|
"-frtti",
|
||||||
],
|
],
|
||||||
fbandroid_deps = ANDROID_JSC_DEPS,
|
fbandroid_deps = ANDROID_JSC_DEPS,
|
||||||
fbandroid_preprocessor_flags = ANDROID_INSPECTOR_FLAGS + [
|
fbandroid_preprocessor_flags = get_android_inspector_flags() + [
|
||||||
"-DWITH_JSC_EXTRA_TRACING=1",
|
"-DWITH_JSC_EXTRA_TRACING=1",
|
||||||
"-DWITH_JSC_MEMORY_PRESSURE=1",
|
"-DWITH_JSC_MEMORY_PRESSURE=1",
|
||||||
"-DWITH_FB_MEMORY_PROFILING=1",
|
"-DWITH_FB_MEMORY_PROFILING=1",
|
||||||
@ -139,7 +139,7 @@ rn_xplat_cxx_library(
|
|||||||
fbobjc_frameworks = [
|
fbobjc_frameworks = [
|
||||||
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
|
"$SDKROOT/System/Library/Frameworks/JavaScriptCore.framework",
|
||||||
],
|
],
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
force_static = True,
|
force_static = True,
|
||||||
macosx_tests_override = [],
|
macosx_tests_override = [],
|
||||||
platforms = (ANDROID, APPLE),
|
platforms = (ANDROID, APPLE),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
|
||||||
|
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
@ -24,7 +24,7 @@ rn_xplat_cxx_library(
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
force_static = True,
|
force_static = True,
|
||||||
preprocessor_flags = [
|
preprocessor_flags = [
|
||||||
"-DLOG_TAG=\"ReactNative\"",
|
"-DLOG_TAG=\"ReactNative\"",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
|
||||||
|
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
@ -34,16 +34,16 @@ rn_xplat_cxx_library(
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
fbobjc_tests = [
|
fbobjc_tests = [
|
||||||
":tests",
|
":tests",
|
||||||
],
|
],
|
||||||
force_static = True,
|
force_static = True,
|
||||||
|
macosx_tests_override = [],
|
||||||
preprocessor_flags = [
|
preprocessor_flags = [
|
||||||
"-DLOG_TAG=\"ReactNative\"",
|
"-DLOG_TAG=\"ReactNative\"",
|
||||||
"-DWITH_FBSYSTRACE=1",
|
"-DWITH_FBSYSTRACE=1",
|
||||||
],
|
],
|
||||||
macosx_tests_override = [],
|
|
||||||
tests = [],
|
tests = [],
|
||||||
visibility = ["PUBLIC"],
|
visibility = ["PUBLIC"],
|
||||||
deps = [
|
deps = [
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
|
||||||
|
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ rn_xplat_cxx_library(
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
fbobjc_tests = [
|
fbobjc_tests = [
|
||||||
":tests",
|
":tests",
|
||||||
],
|
],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
|
||||||
|
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ rn_xplat_cxx_library(
|
|||||||
"-frtti",
|
"-frtti",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
fbobjc_tests = [
|
fbobjc_tests = [
|
||||||
":tests",
|
":tests",
|
||||||
],
|
],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
load("//configurations/buck/apple:flag_defs.bzl", "get_debug_preprocessor_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "react_native_xplat_target", "rn_xplat_cxx_library", "get_apple_inspector_flags")
|
||||||
|
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ rn_xplat_cxx_library(
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
fbobjc_tests = [
|
fbobjc_tests = [
|
||||||
":tests",
|
":tests",
|
||||||
],
|
],
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
load("//configurations/buck/apple:flag_defs.bzl", "get_application_ios_flags", "get_debug_preprocessor_flags", "OBJC_ARC_PREPROCESSOR_FLAGS")
|
load("//configurations/buck/apple:flag_defs.bzl", "get_application_ios_flags", "get_debug_preprocessor_flags", "OBJC_ARC_PREPROCESSOR_FLAGS")
|
||||||
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_xplat_cxx_library", "get_apple_inspector_flags")
|
||||||
load("//ReactNative:DEFS.bzl", "react_native_xplat_target")
|
load("//ReactNative:DEFS.bzl", "react_native_xplat_target")
|
||||||
|
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
@ -34,7 +34,7 @@ rn_xplat_cxx_library(
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + get_apple_inspector_flags(),
|
||||||
fbobjc_tests = [
|
fbobjc_tests = [
|
||||||
":tests",
|
":tests",
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user