bazel: add indirection layer for public visibility
This allows us to have a different notion of "public" in the internal
Google tree where we want to have control over who is depending on us.
Change-Id: I49da60b8b05442d4d17e3bf045e8aa2d6bd7b899
diff --git a/BUILD b/BUILD
index c7b8aca..0cc3c33 100644
--- a/BUILD
+++ b/BUILD
@@ -1495,9 +1495,7 @@
srcs = [
"protos/perfetto/config/perfetto_config.proto",
],
- visibility = [
- "//visibility:public",
- ],
+ visibility = PERFETTO_CONFIG.public_visibility,
)
# GN target: //protos/perfetto/config/power:cpp
@@ -1616,9 +1614,7 @@
"protos/perfetto/config/test_config.proto",
"protos/perfetto/config/trace_config.proto",
],
- visibility = [
- "//visibility:public",
- ],
+ visibility = PERFETTO_CONFIG.public_visibility,
deps = [
":protos_perfetto_common_protos",
":protos_perfetto_config_android_protos",
@@ -1789,9 +1785,7 @@
"protos/perfetto/metrics/android/unmapped_java_symbols.proto",
"protos/perfetto/metrics/android/unsymbolized_frames.proto",
],
- visibility = [
- "//visibility:public",
- ],
+ visibility = PERFETTO_CONFIG.public_visibility,
)
# GN target: //protos/perfetto/metrics/android:zero
@@ -1816,9 +1810,7 @@
srcs = [
"protos/perfetto/metrics/metrics.proto",
],
- visibility = [
- "//visibility:public",
- ],
+ visibility = PERFETTO_CONFIG.public_visibility,
deps = [
":protos_perfetto_metrics_android_protos",
],
@@ -2059,9 +2051,7 @@
srcs = [
"protos/perfetto/trace/perfetto_trace.proto",
],
- visibility = [
- "//visibility:public",
- ],
+ visibility = PERFETTO_CONFIG.public_visibility,
)
# GN target: //protos/perfetto/trace:minimal_lite
@@ -2122,9 +2112,7 @@
"protos/perfetto/trace/trace_packet.proto",
"protos/perfetto/trace/trace_packet_defaults.proto",
],
- visibility = [
- "//visibility:public",
- ],
+ visibility = PERFETTO_CONFIG.public_visibility,
deps = [
":protos_perfetto_common_protos",
":protos_perfetto_config_android_protos",