mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
52d37aa403
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/35064 Original commit changeset: 0fb0db845c04 Original Phabricator Diff: D40610875 (https://github.com/facebook/react-native/commit/d941940b4ce7ed9030be4f72980fb45d9b62365d) Open source is using BUCK 1 which does not seem to have the `oncall` directive. Backing it out because it is breaking the external CI. ## Changelog [internal] Reviewed By: cortinico Differential Revision: D40635873 fbshipit-source-id: 79ebd4db0972520fcca6ccb8c1725657a8ef7949
86 lines
2.6 KiB
Python
86 lines
2.6 KiB
Python
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "FBJNI_TARGET", "get_objc_arc_preprocessor_flags", "get_preprocessor_flags_for_build_mode", "get_static_library_ios_flags", "react_native_target", "react_native_xplat_shared_library_target", "react_native_xplat_target", "rn_xplat_cxx_library", "subdir_glob")
|
|
|
|
rn_xplat_cxx_library(
|
|
name = "core",
|
|
srcs = glob(
|
|
["ReactCommon/**/*.cpp"],
|
|
),
|
|
header_namespace = "",
|
|
exported_headers = subdir_glob(
|
|
[
|
|
("ReactCommon", "*.h"),
|
|
],
|
|
prefix = "ReactCommon",
|
|
),
|
|
compiler_flags = [
|
|
"-Wno-global-constructors",
|
|
],
|
|
compiler_flags_pedantic = True,
|
|
fbandroid_deps = [
|
|
react_native_target("jni/react/jni:jni"),
|
|
FBJNI_TARGET,
|
|
],
|
|
fbandroid_exported_headers = subdir_glob(
|
|
[
|
|
("platform/android/ReactCommon", "*.h"),
|
|
],
|
|
prefix = "ReactCommon",
|
|
),
|
|
fbandroid_srcs = glob(
|
|
[
|
|
"platform/android/ReactCommon/*.cpp",
|
|
],
|
|
),
|
|
fbobjc_compiler_flags = [
|
|
"-fobjc-arc-exceptions",
|
|
],
|
|
fbobjc_inherited_buck_flags = get_static_library_ios_flags(),
|
|
fbobjc_preprocessor_flags = get_objc_arc_preprocessor_flags() + get_preprocessor_flags_for_build_mode(),
|
|
ios_deps = [
|
|
"//xplat/FBBaseLite:FBBaseLite",
|
|
"//xplat/js/react-native-github:RCTCxxModule",
|
|
"//xplat/js/react-native-github:ReactInternal",
|
|
],
|
|
ios_exported_headers = subdir_glob(
|
|
[
|
|
("platform/ios", "*.h"),
|
|
],
|
|
prefix = "ReactCommon",
|
|
),
|
|
ios_frameworks = [
|
|
"$SDKROOT/System/Library/Frameworks/Foundation.framework",
|
|
],
|
|
ios_srcs = glob(
|
|
[
|
|
"platform/ios/**/*.cpp",
|
|
"platform/ios/**/*.mm",
|
|
],
|
|
),
|
|
labels = [
|
|
"pfh:ReactNative_CommonInfrastructurePlaceholder",
|
|
],
|
|
platforms = (ANDROID, APPLE, CXX),
|
|
preprocessor_flags = [
|
|
"-DLOG_TAG=\"ReactNative\"",
|
|
"-DWITH_FBSYSTRACE=1",
|
|
],
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
deps = [
|
|
"//third-party/glog:glog",
|
|
"//xplat/fbsystrace:fbsystrace",
|
|
"//xplat/folly:memory",
|
|
"//xplat/jsi:JSIDynamic",
|
|
react_native_xplat_target("cxxreact:bridge"),
|
|
react_native_xplat_target("cxxreact:module"),
|
|
react_native_xplat_target("callinvoker:callinvoker"),
|
|
react_native_xplat_target("react/debug:debug"),
|
|
react_native_xplat_target("reactperflogger:reactperflogger"),
|
|
],
|
|
exported_deps = [
|
|
react_native_xplat_target("react/bridging:bridging"),
|
|
react_native_xplat_shared_library_target("jsi:jsi"),
|
|
],
|
|
)
|