Files
react-native/Libraries/FBReactNativeSpec/BUCK
T
Janette ChengandFacebook Github Bot 10cc834567 Use fbandroid_labels and fbobjc_labels in xplat targets
Summary:
`xplat` targets add different deps based on what platform the target is being built for.

for anything using `fb_xplat`, we can put all ios supermodules in `fbobjc_labels` and all android sms in `fbandroid_labels`

There's some weirdness with python targets like `thrift_gen` in  `/xplat/mobileconfig/tools/generator/gen-py/BUCK` that don't have platform-specific labels because the except_for list for `fbandroid` doesn't need the `fbsource//` prefix (see changes in `/ios/isolation/infra.mobileconfig.sm`)

Changelog: [Internal]

Reviewed By: shergin, joshleibsly

Differential Revision: D17884952

fbshipit-source-id: e245364cf515b75682990094d24f789d53b1f3f5
2019-10-15 19:32:27 -07:00

25 lines
829 B
Python

load("//tools/build_defs/oss:rn_defs.bzl", "fb_apple_library", "react_native_xplat_target_apple", "subdir_glob")
fb_apple_library(
name = "FBReactNativeSpecApple",
srcs = glob(["FBReactNativeSpec/**/*.mm"]),
exported_headers = subdir_glob(
[
("FBReactNativeSpec", "*.h"),
],
prefix = "FBReactNativeSpec",
),
contacts = ["oncall+react_native@xmail.facebook.com"],
labels = ["supermodule:ios/isolation/infra.react_native"],
frameworks = [
"Foundation",
"UIKit",
],
reexport_all_header_dependencies = True,
deps = [
"fbsource//xplat/js/react-native-github:RCTTypeSafety",
"fbsource//xplat/js/react-native-github/Libraries/RCTRequired:RCTRequired",
react_native_xplat_target_apple("turbomodule/core:core"),
],
)