mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/32585 D31631766 (https://github.com/facebook/react-native/commit/b60e229d7f57f9ba79d984b85925f979290d31bf) unified compiler flags for all RN targets, which also enabled `-Werror` for this target. This causes issues on Windows where some warnings are extremely noisy and unhelpful and causes our Hermes+JSInspector build to fail Reviewed By: rshest Differential Revision: D32244577 fbshipit-source-id: 7cda346c46d21ff03490bae705759c502f6cf29f
37 lines
1012 B
Python
37 lines
1012 B
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",
|
|
),
|
|
fbandroid_preferred_linkage = "shared",
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS),
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
windows_compiler_flags = ["/WX-"], # Do not treat all warnings as errors
|
|
)
|