mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
39 lines
869 B
Python
39 lines
869 B
Python
load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
|
load("//tools/build_defs/oss:rn_defs.bzl", "rn_xplat_cxx_library")
|
|
|
|
EXPORTED_HEADERS = [
|
|
"InspectorInterfaces.h",
|
|
]
|
|
|
|
rn_xplat_cxx_library(
|
|
name = "jsinspector",
|
|
srcs = glob(
|
|
["*.cpp"],
|
|
),
|
|
headers = subdir_glob(
|
|
[
|
|
("", "*.h"),
|
|
],
|
|
exclude = EXPORTED_HEADERS,
|
|
prefix = "jsinspector",
|
|
),
|
|
header_namespace = "",
|
|
exported_headers = subdir_glob(
|
|
[
|
|
("", header)
|
|
for header in EXPORTED_HEADERS
|
|
],
|
|
prefix = "jsinspector",
|
|
),
|
|
compiler_flags = [
|
|
"-Wall",
|
|
"-fexceptions",
|
|
"-std=c++1y",
|
|
],
|
|
fbandroid_preferred_linkage = "shared",
|
|
fbobjc_labels = ["supermodule:ios/isolation/infra.react_native"],
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|