Add default_visibility for soong modules

So that we don't get surprise usages.

Bug: 348717861
Test: m nothing
Change-Id: I47319a727092c1bd936cca88f5713ee977a48b48
This commit is contained in:
Cole Faust
2024-09-18 16:42:01 -07:00
parent 3249ac6d3f
commit 16d227a725
28 changed files with 79 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
package {
default_applicable_licenses: ["Android-Apache-2.0"],
default_visibility: [
"//build/soong:__subpackages__",
],
}
subdirs = [
@@ -23,6 +26,8 @@ bootstrap_go_package {
srcs: [
"doc.go",
],
// Used by plugins, though probably shouldn't be.
visibility: ["//visibility:public"],
}
//
@@ -40,6 +45,7 @@ cc_defaults {
enabled: true,
},
},
defaults_visibility: ["//visibility:public"],
}
//
@@ -51,6 +57,7 @@ kernel_headers {
vendor: true,
recovery_available: true,
min_sdk_version: "apex_inherit",
visibility: ["//visibility:public"],
}
cc_genrule {
@@ -75,6 +82,7 @@ cc_genrule {
cmd: "$(location) -s $(out) $(in)",
srcs: [":linker"],
out: ["linker.s"],
visibility: ["//bionic/libc"],
}
cc_genrule {
@@ -99,11 +107,13 @@ cc_genrule {
cmd: "$(location) -T $(out) $(in)",
srcs: [":linker"],
out: ["linker.script"],
visibility: ["//visibility:public"],
}
// Instantiate the dex_bootjars singleton module.
dex_bootjars {
name: "dex_bootjars",
visibility: ["//visibility:public"],
}
// Pseudo-test that's run on checkbuilds to ensure that get_clang_version can
@@ -123,6 +133,7 @@ dexpreopt_systemserver_check {
// container for apex_contributions selected using build flags
all_apex_contributions {
name: "all_apex_contributions",
visibility: ["//visibility:public"],
}
product_config {