mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
3e0d77834a
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/32042 This diff moves react_native_log out of utils to make it easier/possible to import from modules. Changelog: [internal] Reviewed By: JoshuaGross Differential Revision: D30411247 fbshipit-source-id: 5482761b259600df051a88c6eff1834c882e7230
44 lines
1.0 KiB
Python
44 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 = [
|
|
"react_native_log.h",
|
|
]
|
|
|
|
rn_xplat_cxx_library(
|
|
name = "logger",
|
|
srcs = glob(
|
|
["*.cpp"],
|
|
),
|
|
headers = subdir_glob(
|
|
[
|
|
("", "*.h"),
|
|
],
|
|
exclude = EXPORTED_HEADERS,
|
|
prefix = "logger",
|
|
),
|
|
header_namespace = "",
|
|
exported_headers = subdir_glob(
|
|
[
|
|
("", header)
|
|
for header in EXPORTED_HEADERS
|
|
],
|
|
prefix = "logger",
|
|
),
|
|
compiler_flags = [
|
|
"-Wall",
|
|
"-fexceptions",
|
|
"-std=c++17",
|
|
],
|
|
fbandroid_preferred_linkage = "shared",
|
|
labels = ["supermodule:xplat/default/public.react_native.infra"],
|
|
platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS),
|
|
visibility = [
|
|
"PUBLIC",
|
|
],
|
|
deps = [
|
|
"//third-party/glog:glog",
|
|
],
|
|
)
|