Mostly internal change: Optimize OSS transforms

This should only affect the Bazel `BUILD.bazel` files and their formatting.

PiperOrigin-RevId: 538426054
Change-Id: I0162726d3fb4bcb4d7938cddc6f39e0d9f2b4a3d
This commit is contained in:
Christian Blichmann 2023-06-07 02:22:31 -07:00 committed by Copybara-Service
parent 6cd83d68de
commit 72452e1582
16 changed files with 47 additions and 31 deletions

View File

@ -15,9 +15,7 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library") load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
package( package(default_visibility = ["//sandboxed_api:__subpackages__"])
default_visibility = ["//sandboxed_api:__subpackages__"],
)
licenses(["notice"]) licenses(["notice"])

View File

@ -18,9 +18,7 @@ load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library") load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library") load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
package( package(default_visibility = ["//sandboxed_api:__subpackages__"])
default_visibility = ["//sandboxed_api:__subpackages__"],
)
licenses(["notice"]) licenses(["notice"])

View File

@ -16,6 +16,8 @@ load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library") load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library") load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"]) licenses(["notice"])
sapi_proto_library( sapi_proto_library(

View File

@ -17,6 +17,8 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:sapi.bzl", "sapi_library") load("//sandboxed_api/bazel:sapi.bzl", "sapi_library")
package(default_visibility = ["//sandboxed_api:__subpackages__"])
licenses(["notice"]) licenses(["notice"])
sapi_library( sapi_library(

View File

@ -18,9 +18,7 @@ load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:embed_data.bzl", "sapi_cc_embed_data") load("//sandboxed_api/bazel:embed_data.bzl", "sapi_cc_embed_data")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library") load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
package( package(default_visibility = ["//sandboxed_api:__subpackages__"])
default_visibility = ["//sandboxed_api:__subpackages__"],
)
licenses(["notice"]) licenses(["notice"])
@ -44,9 +42,7 @@ cc_library(
cc_library( cc_library(
name = "allow_unrestricted_networking", name = "allow_unrestricted_networking",
hdrs = [ hdrs = ["allow_unrestricted_networking.h"],
"allow_unrestricted_networking.h",
],
copts = sapi_platform_copts(), copts = sapi_platform_copts(),
visibility = [ visibility = [
"//sandboxed_api/sandbox2:__pkg__", "//sandboxed_api/sandbox2:__pkg__",

View File

@ -21,6 +21,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -18,6 +18,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -20,6 +20,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -16,6 +16,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -21,6 +21,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -22,6 +22,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -14,6 +14,10 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package(default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__",
])
licenses(["notice"]) licenses(["notice"])
# Executor # Executor

View File

@ -14,11 +14,9 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
package( package(default_visibility = [
default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__", "//sandboxed_api/sandbox2:__subpackages__",
], ])
)
licenses(["notice"]) licenses(["notice"])

View File

@ -15,11 +15,9 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library") load("//sandboxed_api/bazel:proto.bzl", "sapi_proto_library")
package( package(default_visibility = [
default_visibility = [
"//sandboxed_api/sandbox2:__subpackages__", "//sandboxed_api/sandbox2:__subpackages__",
], ])
)
licenses(["notice"]) licenses(["notice"])

View File

@ -15,18 +15,14 @@
load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts") load("//sandboxed_api/bazel:build_defs.bzl", "sapi_platform_copts")
_DEFAULT_VISIBILITY = [ _DEFAULT_VISIBILITY = [
"//security/bedebox:__subpackages__",
"//sandboxed_api:__subpackages__", "//sandboxed_api:__subpackages__",
] ]
package( package(default_visibility = _DEFAULT_VISIBILITY)
default_visibility = _DEFAULT_VISIBILITY,
)
package_group( package_group(
name = "minielf_users", name = "minielf_users",
packages = [ packages = [
"//buzz/diffractor/sandbox/...", # mbonadei@ and ossu@ (alternatively rtc-diffractor-eng@)
], ],
) )

View File

@ -25,11 +25,11 @@ cc_binary(
copts = sapi_platform_copts(), copts = sapi_platform_copts(),
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
deps = [ deps = [
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
"//sandboxed_api/util:fileops", "//sandboxed_api/util:fileops",
"//sandboxed_api/util:raw_logging", "//sandboxed_api/util:raw_logging",
"//sandboxed_api/util:strerror", "//sandboxed_api/util:strerror",
"@com_google_absl//absl/strings",
"@com_google_absl//absl/strings:str_format",
], ],
) )
@ -45,10 +45,10 @@ cc_test(
data = ["testdata/filewrapper_embedded.bin"], data = ["testdata/filewrapper_embedded.bin"],
deps = [ deps = [
":filewrapper_embedded", ":filewrapper_embedded",
"@com_google_googletest//:gtest_main",
"@com_google_absl//absl/strings",
"//sandboxed_api:testing", "//sandboxed_api:testing",
"//sandboxed_api/util:file_helpers", "//sandboxed_api/util:file_helpers",
"//sandboxed_api/util:status_matchers", "//sandboxed_api/util:status_matchers",
"@com_google_absl//absl/strings",
"@com_google_googletest//:gtest_main",
], ],
) )