mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
71e89213aa
Summary: If you don't list `Cxx` as a supported platform, we will use Android builds, even when using `buck run` for local execution. Changelog: [Internal] Reviewed By: derolf Differential Revision: D37600464 fbshipit-source-id: 6ba8566cde4180524351c9d8c647ce1d4ac5279d
28 lines
872 B
Python
28 lines
872 B
Python
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "CXX", "rn_xplat_cxx_library")
|
|
|
|
rn_xplat_cxx_library(
|
|
name = "reactperflogger",
|
|
srcs = glob(["**/*.cpp"]),
|
|
header_namespace = "",
|
|
exported_headers = {
|
|
"reactperflogger/BridgeNativeModulePerfLogger.h": "reactperflogger/BridgeNativeModulePerfLogger.h",
|
|
"reactperflogger/NativeModulePerfLogger.h": "reactperflogger/NativeModulePerfLogger.h",
|
|
},
|
|
compiler_flags = [
|
|
"-Wno-global-constructors",
|
|
],
|
|
labels = [
|
|
"pfh:ReactNative_CommonInfrastructurePlaceholder",
|
|
"supermodule:xplat/default/public.react_native.infra",
|
|
],
|
|
platforms = (ANDROID, APPLE, CXX),
|
|
preferred_linkage = "static",
|
|
preprocessor_flags = [
|
|
"-DLOG_TAG=\"ReactNative\"",
|
|
"-DWITH_FBSYSTRACE=1",
|
|
],
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|