diff --git a/cpp/core/BUILD b/cpp/core/BUILD index 4c4bf890..9fa892fb 100644 --- a/cpp/core/BUILD +++ b/cpp/core/BUILD @@ -21,6 +21,7 @@ cc_library( hdrs = [ "core.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//third_party/nearby_connections/windows:__subpackages__", @@ -50,6 +51,7 @@ cc_library( "status.h", "strategy.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//core:__subpackages__", diff --git a/cpp/core/internal/BUILD b/cpp/core/internal/BUILD index e123768f..94912369 100644 --- a/cpp/core/internal/BUILD +++ b/cpp/core/internal/BUILD @@ -83,6 +83,7 @@ cc_library( "wifi_lan_endpoint_channel.h", "wifi_lan_service_info.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core:__pkg__", "//core/internal/fuzzers:__pkg__", @@ -120,6 +121,7 @@ cc_library( hdrs = [ "message_lite.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core:__subpackages__", ], diff --git a/cpp/core/internal/mediums/BUILD b/cpp/core/internal/mediums/BUILD index 28f9e427..8104ef44 100644 --- a/cpp/core/internal/mediums/BUILD +++ b/cpp/core/internal/mediums/BUILD @@ -36,6 +36,7 @@ cc_library( "webrtc.h", "wifi_lan.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core/internal:__subpackages__", ], @@ -67,6 +68,7 @@ cc_library( name = "utils", srcs = ["utils.cc"], hdrs = ["utils.h"], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core/internal:__pkg__", "//core/internal/mediums:__pkg__", diff --git a/cpp/core/internal/mediums/ble_v2/BUILD b/cpp/core/internal/mediums/ble_v2/BUILD index 30faec9d..ba9b94e4 100644 --- a/cpp/core/internal/mediums/ble_v2/BUILD +++ b/cpp/core/internal/mediums/ble_v2/BUILD @@ -29,6 +29,7 @@ cc_library( "ble_peripheral.h", "discovered_peripheral_callback.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core/internal:__subpackages__", ], diff --git a/cpp/core/internal/mediums/webrtc/BUILD b/cpp/core/internal/mediums/webrtc/BUILD index 7ae2868f..fedff28f 100644 --- a/cpp/core/internal/mediums/webrtc/BUILD +++ b/cpp/core/internal/mediums/webrtc/BUILD @@ -31,6 +31,7 @@ cc_library( "webrtc_socket.h", "webrtc_socket_wrapper.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core/internal:__subpackages__", ], diff --git a/cpp/platform/api/BUILD b/cpp/platform/api/BUILD index a7a2ca10..7cd9ef95 100644 --- a/cpp/platform/api/BUILD +++ b/cpp/platform/api/BUILD @@ -34,6 +34,7 @@ cc_library( "submittable_executor.h", "system_clock.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//platform/base:__pkg__", @@ -60,6 +61,7 @@ cc_library( "wifi.h", "wifi_lan.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core/internal:__subpackages__", "//platform/base:__pkg__", @@ -81,6 +83,7 @@ cc_library( hdrs = [ "platform.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//platform/base:__pkg__", diff --git a/cpp/platform/base/BUILD b/cpp/platform/base/BUILD index b130fff2..a9d8b18d 100644 --- a/cpp/platform/base/BUILD +++ b/cpp/platform/base/BUILD @@ -40,6 +40,7 @@ cc_library( "socket.h", "types.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//core:__subpackages__", @@ -69,6 +70,7 @@ cc_library( "base_pipe.h", "byte_utils.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core:__subpackages__", "//platform/impl:__subpackages__", @@ -87,6 +89,7 @@ cc_library( hdrs = [ "logging.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//platform:__subpackages__", @@ -107,6 +110,7 @@ cc_library( "cancellation_flag.h", "cancellation_flag_listener.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core/internal:__subpackages__", "//platform/api:__subpackages__", diff --git a/cpp/platform/impl/shared/BUILD b/cpp/platform/impl/shared/BUILD index f7ba9d89..55ed194d 100644 --- a/cpp/platform/impl/shared/BUILD +++ b/cpp/platform/impl/shared/BUILD @@ -21,6 +21,7 @@ cc_library( hdrs = [ "posix_mutex.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//platform/impl:__subpackages__", ], @@ -35,6 +36,7 @@ cc_library( hdrs = [ "posix_condition_variable.h", ], + compatible_with = ["//buildenv/target:non_prod"], deps = [ ":posix_mutex", "//platform/api:types", @@ -45,6 +47,7 @@ cc_library( name = "file", srcs = ["file.cc"], hdrs = ["file.h"], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//platform/impl:__subpackages__", diff --git a/cpp/platform/impl/windows/BUILD b/cpp/platform/impl/windows/BUILD index 34b9d8d4..e1d65ef3 100644 --- a/cpp/platform/impl/windows/BUILD +++ b/cpp/platform/impl/windows/BUILD @@ -37,6 +37,7 @@ cc_library( "settable_future.h", "submittable_executor.h", ], + compatible_with = ["//buildenv/target:non_prod"], deps = [ "//base", "//platform/api:types", @@ -58,6 +59,7 @@ cc_library( "wifi.h", "wifi_lan.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = ["//visibility:private"], deps = [ "//platform/api:comm", @@ -71,6 +73,7 @@ cc_library( srcs = [ "crypto.cc", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = ["//visibility:private"], deps = [ "//absl/strings", @@ -96,6 +99,7 @@ cc_library( "bluetooth_classic_server_socket.h", "bluetooth_classic_socket.h", ], + compatible_with = ["//buildenv/target:non_prod"], copts = ["-Ithird_party/nearby_connections/cpp/platform/impl/windows/generated"], visibility = [ "//third_party/nearby_connections/windows:__subpackages__", diff --git a/cpp/platform/impl/windows/generated/BUILD b/cpp/platform/impl/windows/generated/BUILD index c9507ec5..e23d4d29 100644 --- a/cpp/platform/impl/windows/generated/BUILD +++ b/cpp/platform/impl/windows/generated/BUILD @@ -15,6 +15,7 @@ licenses(["notice"]) cc_library( name = "types", + compatible_with = ["//buildenv/target:non_prod"], linkopts = [ "advapi32.lib", "comdlg32.lib", diff --git a/cpp/platform/public/BUILD b/cpp/platform/public/BUILD index 704eafba..6ff6995d 100644 --- a/cpp/platform/public/BUILD +++ b/cpp/platform/public/BUILD @@ -49,6 +49,7 @@ cc_library( "thread_check_callable.h", "thread_check_runnable.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//core:__subpackages__", @@ -81,6 +82,7 @@ cc_library( "webrtc.h", "wifi_lan.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", "//core:__subpackages__", @@ -105,6 +107,7 @@ cc_library( hdrs = [ "logging.h", ], + compatible_with = ["//buildenv/target:non_prod"], visibility = [ "//core:__subpackages__", "//platform:__subpackages__", diff --git a/proto/BUILD b/proto/BUILD index 5f44402a..e1b09839 100644 --- a/proto/BUILD +++ b/proto/BUILD @@ -24,7 +24,10 @@ proto_library( name = "connections_enums_proto", srcs = ["connections_enums.proto"], cc_api_version = 2, - compatible_with = ["//buildenv/target:appengine"], + compatible_with = [ + "//buildenv/target:non_prod", + "//buildenv/target:appengine", + ], deps = [ "//logs/proto/logs_annotations", ], @@ -47,6 +50,9 @@ java_proto_library( portable_proto_library( name = "connections_enums_portable_proto", + compatible_with = [ + "//buildenv/target:non_prod", + ], config = ":connections_enums_proto_config", copts = [ "-DGOOGLE_PROTOBUF_NO_RTTI=1", @@ -72,7 +78,10 @@ proto_library( name = "sharing_enums_proto", srcs = ["sharing_enums.proto"], cc_api_version = 2, - compatible_with = ["//buildenv/target:appengine"], + compatible_with = [ + "//buildenv/target:non_prod", + "//buildenv/target:appengine", + ], deps = [ "//logs/proto/logs_annotations", ], diff --git a/proto/connections/BUILD b/proto/connections/BUILD index 6d7e5fcc..d1448693 100644 --- a/proto/connections/BUILD +++ b/proto/connections/BUILD @@ -22,6 +22,9 @@ proto_library( "offline_wire_formats.proto", ], cc_api_version = 2, + compatible_with = [ + "//buildenv/target:non_prod", + ], visibility = [ "//googlemac/iPhone/Shared/Nearby/Connections:__subpackages__", ], @@ -38,6 +41,9 @@ java_lite_proto_library( portable_proto_library( name = "offline_wire_formats_portable_proto", + compatible_with = [ + "//buildenv/target:non_prod", + ], config = ":offline_wire_formats_proto_config", copts = [ "-DGOOGLE_PROTOBUF_NO_RTTI=1", diff --git a/proto/mediums/BUILD b/proto/mediums/BUILD index 73695c21..0064d553 100644 --- a/proto/mediums/BUILD +++ b/proto/mediums/BUILD @@ -73,10 +73,16 @@ proto_library( "web_rtc_signaling_frames.proto", ], cc_api_version = 2, + compatible_with = [ + "//buildenv/target:non_prod", + ], ) cc_proto_library( name = "web_rtc_signaling_frames_cc_proto", + compatible_with = [ + "//buildenv/target:non_prod", + ], visibility = [ "//location/nearby/connections:__subpackages__", "//third_party/nearby_connections:__subpackages__",