mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b60e229d7f
Summary: Nearly all of these are identical and these compiler_flags are now centralized in rn_defs.bzl. This should have NO CHANGE on build configuration, the flags have just moved for now. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D31631766 fbshipit-source-id: be40ebeb70ae52b7ded07ca08c4a29f10a0ed925
25 lines
786 B
Python
25 lines
786 B
Python
load("//tools/build_defs/oss:rn_defs.bzl", "ANDROID", "APPLE", "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 = ["supermodule:xplat/default/public.react_native.infra"],
|
|
platforms = (ANDROID, APPLE),
|
|
preferred_linkage = "static",
|
|
preprocessor_flags = [
|
|
"-DLOG_TAG=\"ReactNative\"",
|
|
"-DWITH_FBSYSTRACE=1",
|
|
],
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
)
|