Files
react-native/ReactCommon/logger/BUCK
T
Riccardo Cipolleschi 52d37aa403 Back out "add oncall annotation for BUCK files in xplat based on supermodule information - /home/s2shi/tmp/xplat_buck_oncall/xplat_buck_batch10" (#35064)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/35064

Original commit changeset: 0fb0db845c04

Original Phabricator Diff: D40610875 (https://github.com/facebook/react-native/commit/d941940b4ce7ed9030be4f72980fb45d9b62365d)

Open source is using BUCK 1 which does not seem to have the `oncall` directive.

Backing it out because it is breaking the external CI.

## Changelog
[internal]

Reviewed By: cortinico

Differential Revision: D40635873

fbshipit-source-id: 79ebd4db0972520fcca6ccb8c1725657a8ef7949
2022-10-24 10:44:39 -07:00

42 lines
1018 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 = [
"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_pedantic = True,
fbandroid_preferred_linkage = "shared",
labels = [
"pfh:ReactNative_CommonInfrastructurePlaceholder",
],
platforms = (ANDROID, APPLE, CXX, FBCODE, WINDOWS),
visibility = [
"PUBLIC",
],
deps = [
"//third-party/glog:glog",
],
)