mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
2052bb63b5
Summary: The fbcode version of Skylight needs this and it is already compiling fine Changelog: [Internal] Reviewed By: dulinriley Differential Revision: D27765879 fbshipit-source-id: 18aca2756f39326fb90397a10a67583db84076fd
41 lines
1.0 KiB
Python
41 lines
1.0 KiB
Python
load("@fbsource//tools/build_defs:glob_defs.bzl", "subdir_glob")
|
|
load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "APPLE", "CXX", "FBCODE", "WINDOWS")
|
|
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",
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS),
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|