2019-07-02 01:12:56 +03:00
|
|
|
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")
|
2019-07-04 21:17:06 +03:00
|
|
|
load("@fbsource//tools/build_defs/oss:rn_defs.bzl", "rn_apple_library", "rn_debug_flags")
|
2019-07-02 20:19:41 +03:00
|
|
|
load(
|
|
|
|
"@fbsource//xplat/configurations/buck/apple/plugins/sad_xplat_hosted_configurations:react_module_registration.bzl",
|
|
|
|
"react_module_plugin_providers",
|
|
|
|
)
|
2019-07-02 01:12:56 +03:00
|
|
|
|
|
|
|
rn_apple_library(
|
|
|
|
name = "CoreModulesApple",
|
|
|
|
srcs = glob(
|
|
|
|
[
|
|
|
|
"**/*.m",
|
|
|
|
"**/*.mm",
|
|
|
|
],
|
|
|
|
),
|
2019-07-04 21:17:06 +03:00
|
|
|
exported_headers = glob(["**/*.h"]),
|
2019-07-02 20:19:41 +03:00
|
|
|
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",
|
|
|
|
],
|
2019-07-04 21:17:06 +03:00
|
|
|
header_path_prefix = "React",
|
2019-07-02 20:19:41 +03:00
|
|
|
lang_compiler_flags = get_fbobjc_enable_exception_lang_compiler_flags_DEPRECATED(),
|
|
|
|
link_whole = True,
|
|
|
|
platform_preprocessor_flags = [(
|
|
|
|
"linux",
|
|
|
|
["-D PIC_MODIFIER=@PLT"],
|
|
|
|
)],
|
|
|
|
plugins = react_module_plugin_providers(
|
2019-08-23 21:58:36 +03:00
|
|
|
name = "AccessibilityManager",
|
|
|
|
native_class_func = "RCTAccessibilityManagerCls",
|
|
|
|
) +
|
|
|
|
react_module_plugin_providers(
|
2019-08-22 00:28:16 +03:00
|
|
|
name = "DeviceInfo",
|
|
|
|
native_class_func = "RCTDeviceInfoCls",
|
|
|
|
) +
|
|
|
|
react_module_plugin_providers(
|
|
|
|
name = "ExceptionsManager",
|
|
|
|
native_class_func = "RCTExceptionsManagerCls",
|
2019-08-16 05:57:09 +03:00
|
|
|
) +
|
|
|
|
react_module_plugin_providers(
|
2019-08-15 21:27:29 +03:00
|
|
|
name = "ImageLoader",
|
|
|
|
native_class_func = "RCTImageLoaderCls",
|
|
|
|
) +
|
|
|
|
react_module_plugin_providers(
|
|
|
|
name = "PlatformConstants",
|
|
|
|
native_class_func = "RCTPlatformCls",
|
|
|
|
),
|
2019-07-02 20:19:41 +03:00
|
|
|
preprocessor_flags = OBJC_ARC_PREPROCESSOR_FLAGS + get_debug_preprocessor_flags() + rn_debug_flags() + [
|
|
|
|
"-DRN_DISABLE_OSS_PLUGIN_HEADER",
|
|
|
|
],
|
2019-08-13 21:09:56 +03:00
|
|
|
reexport_all_header_dependencies = True,
|
2019-07-02 20:19:41 +03:00
|
|
|
visibility = ["PUBLIC"],
|
|
|
|
exported_deps = [
|
2019-08-14 23:35:12 +03:00
|
|
|
"fbsource//xplat/js:RCTImageApple",
|
2019-07-02 20:19:41 +03:00
|
|
|
"fbsource//xplat/js/react-native-github:ReactInternalApple",
|
|
|
|
"fbsource//xplat/js/react-native-github/Libraries/FBReactNativeSpec:FBReactNativeSpecApple",
|
2019-07-02 01:12:56 +03:00
|
|
|
],
|
|
|
|
)
|