mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b476ad78b5
Differential Revision: D16082484 Original commit changeset: 81d9f20b2041 fbshipit-source-id: 682476fccff7320de9ffd541b9a9ff3cae4da3bd
57 lines
1.6 KiB
Python
57 lines
1.6 KiB
Python
load("@fbsource//tools/build_defs/apple:flag_defs.bzl", "OBJC_ARC_PREPROCESSOR_FLAGS", "get_debug_preprocessor_flags", "get_fbobjc_enable_exception_lang_compiler_flags_DEPRECATED")
|
|
load("//tools/build_defs/oss:rn_defs.bzl", "rn_debug_flags", "rn_apple_library", "subdir_glob")
|
|
|
|
rn_apple_library(
|
|
name = "CoreModulesApple",
|
|
srcs = glob(
|
|
[
|
|
"**/*.m",
|
|
"**/*.mm",
|
|
],
|
|
),
|
|
headers = glob(
|
|
[
|
|
"**/*.h",
|
|
],
|
|
),
|
|
header_namespace = "",
|
|
exported_headers = subdir_glob(
|
|
[
|
|
(
|
|
"",
|
|
"*.h",
|
|
),
|
|
],
|
|
prefix = "React",
|
|
),
|
|
compiler_flags = [
|
|
"-Wno-error=unguarded-availability-new",
|
|
"-Wno-unknown-warning-option",
|
|
],
|
|
contacts = ["oncall+react_native@xmail.facebook.com"],
|
|
exported_linker_flags = [
|
|
"-weak_framework",
|
|
"UserNotifications",
|
|
"-weak_framework",
|
|
"WebKit",
|
|
],
|
|
exported_preprocessor_flags = rn_debug_flags(),
|
|
frameworks = [
|
|
"Foundation",
|
|
"UIKit",
|
|
],
|
|
labels = ["depslint_never_add"],
|
|
lang_compiler_flags = get_fbobjc_enable_exception_lang_compiler_flags_DEPRECATED(),
|
|
link_whole = True,
|
|
platform_preprocessor_flags = [(
|
|
"linux",
|
|
["-D PIC_MODIFIER=@PLT"],
|
|
)],
|
|
preprocessor_flags = OBJC_ARC_PREPROCESSOR_FLAGS + get_debug_preprocessor_flags() + rn_debug_flags(),
|
|
visibility = ["PUBLIC"],
|
|
exported_deps = [
|
|
"fbsource//xplat/js/react-native-github:ReactInternalApple",
|
|
"fbsource//xplat/js/react-native-github/Libraries/FBReactNativeSpec:FBReactNativeSpecApple",
|
|
],
|
|
)
|