Add visibilities for prebuilts.
These visibilities are intentionally blunt, to allow the prebuilts to
move around for now.
Many of these visibilities may also go away completely again if the
exported binaries are changed to compile internal ART libraries
statically.
Test: v
1. build/soong/scripts/build-aml-prebuilts.sh art-module-sdk \
art-module-test-exports conscrypt-module-sdk \
conscrypt-module-test-exports conscrypt-module-host-exports \
art-module-host-exports
2. Unzip out/aml/soong/mainline-sdks/*.zip into separate
subdirectories under prebuilts/runtime
3. env SOONG_ALLOW_MISSING_DEPENDENCIES=true m nothing
(together with the topic of https://r.android.com/1252167)
Bug: 155921753
Change-Id: Id8bbc8aedb0b87e30e9cf3d2a9f34b33cb71756c
diff --git a/dexlayout/Android.bp b/dexlayout/Android.bp
index cd40620..ccdfd78 100644
--- a/dexlayout/Android.bp
+++ b/dexlayout/Android.bp
@@ -15,6 +15,12 @@
art_cc_defaults {
name: "libart-dexlayout-defaults",
defaults: ["art_defaults"],
+ visibility: [
+ // Visibility for prebuilt binaries from the prebuilt of this module.
+ // TODO(b/155921753): Restrict this when prebuilts are in their proper
+ // locations.
+ "//prebuilts:__subpackages__",
+ ],
host_supported: true,
srcs: [
"compact_dex_writer.cc",