Convert constant with build flags to function
Reviewed By: ttsugriy Differential Revision: D7184372 fbshipit-source-id: c66f473ad15898532f24c6276898ab250e749744
This commit is contained in:
parent
89757edb34
commit
5f497ca302
|
@ -1,4 +1,4 @@
|
||||||
load("@xplat//configurations/buck/apple:flag_defs.bzl", "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", "ANDROID_INSPECTOR_FLAGS", "APPLE_INSPECTOR_FLAGS", "ANDROID_JSC_DEPS", "APPLE_JSC_DEPS", "react_native_xplat_target")
|
||||||
|
|
||||||
CXX_LIBRARY_COMPILER_FLAGS = [
|
CXX_LIBRARY_COMPILER_FLAGS = [
|
||||||
|
@ -9,8 +9,8 @@ CXX_LIBRARY_COMPILER_FLAGS = [
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
if not IS_OSS_BUILD:
|
if not IS_OSS_BUILD:
|
||||||
load("@xplat//configurations/buck/apple:flag_defs.bzl", "STATIC_LIBRARY_IOS_FLAGS", "flags")
|
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_static_library_ios_flags", "flags")
|
||||||
APPLE_COMPILER_FLAGS = flags.get_flag_value(STATIC_LIBRARY_IOS_FLAGS, 'compiler_flags')
|
APPLE_COMPILER_FLAGS = flags.get_flag_value(get_static_library_ios_flags(), 'compiler_flags')
|
||||||
|
|
||||||
rn_xplat_cxx_library(
|
rn_xplat_cxx_library(
|
||||||
name = "module",
|
name = "module",
|
||||||
|
@ -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 = DEBUG_PREPROCESSOR_FLAGS + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
||||||
force_static = True,
|
force_static = True,
|
||||||
preprocessor_flags = [
|
preprocessor_flags = [
|
||||||
"-DLOG_TAG=\"ReactNative\"",
|
"-DLOG_TAG=\"ReactNative\"",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
load("@xplat//configurations/buck/apple:flag_defs.bzl", "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", "APPLE_INSPECTOR_FLAGS")
|
load("//ReactNative:DEFS.bzl", "IS_OSS_BUILD", "rn_xplat_cxx_library", "APPLE_INSPECTOR_FLAGS")
|
||||||
|
|
||||||
CXX_LIBRARY_COMPILER_FLAGS = [
|
CXX_LIBRARY_COMPILER_FLAGS = [
|
||||||
|
@ -9,8 +9,8 @@ CXX_LIBRARY_COMPILER_FLAGS = [
|
||||||
APPLE_COMPILER_FLAGS = []
|
APPLE_COMPILER_FLAGS = []
|
||||||
|
|
||||||
if not IS_OSS_BUILD:
|
if not IS_OSS_BUILD:
|
||||||
load("@xplat//configurations/buck/apple:flag_defs.bzl", "STATIC_LIBRARY_IOS_FLAGS", "flags")
|
load("@xplat//configurations/buck/apple:flag_defs.bzl", "get_static_library_ios_flags", "flags")
|
||||||
APPLE_COMPILER_FLAGS = flags.get_flag_value(STATIC_LIBRARY_IOS_FLAGS, 'compiler_flags')
|
APPLE_COMPILER_FLAGS = flags.get_flag_value(get_static_library_ios_flags(), 'compiler_flags')
|
||||||
|
|
||||||
rn_xplat_cxx_library(
|
rn_xplat_cxx_library(
|
||||||
name = "fabric",
|
name = "fabric",
|
||||||
|
@ -27,7 +27,7 @@ rn_xplat_cxx_library(
|
||||||
"-frtti",
|
"-frtti",
|
||||||
],
|
],
|
||||||
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
fbobjc_compiler_flags = APPLE_COMPILER_FLAGS,
|
||||||
fbobjc_preprocessor_flags = DEBUG_PREPROCESSOR_FLAGS + APPLE_INSPECTOR_FLAGS,
|
fbobjc_preprocessor_flags = get_debug_preprocessor_flags() + APPLE_INSPECTOR_FLAGS,
|
||||||
force_static = True,
|
force_static = True,
|
||||||
preprocessor_flags = [
|
preprocessor_flags = [
|
||||||
"-DLOG_TAG=\"ReactNative\"",
|
"-DLOG_TAG=\"ReactNative\"",
|
||||||
|
|
Loading…
Reference in New Issue