aboutsummaryrefslogtreecommitdiffstats
path: root/apex/apex.go
diff options
context:
space:
mode:
authorPaul Duffin <paulduffin@google.com>2020-03-10 13:44:19 +0000
committerPaul Duffin <paulduffin@google.com>2020-04-22 12:51:35 +0100
commitc23d9f652b450efc9e603d6a9ff9ddec3efb1f4c (patch)
tree081a59a92e7048237da09dd98116a62bba93594c /apex/apex.go
parentacdd3083441788cff48594dfe97aeb501718e06b (diff)
downloadbuild_soong-c23d9f652b450efc9e603d6a9ff9ddec3efb1f4c.tar.gz
build_soong-c23d9f652b450efc9e603d6a9ff9ddec3efb1f4c.tar.bz2
build_soong-c23d9f652b450efc9e603d6a9ff9ddec3efb1f4c.zip
Remove special handling of com.android.art.debug/release
The whitelistedApexAvailable used to map references to com.android.art.debug/release to com.android.art before looking it up in the white list. This change removed that mapping and simply added both to the white list. Bug: 142935992 Bug: 153306490 Test: m nothing Merged-In: Ibad76fb73988688eb303e056197986ee9a6119ae Change-Id: Ibad76fb73988688eb303e056197986ee9a6119ae
Diffstat (limited to 'apex/apex.go')
-rw-r--r--apex/apex.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/apex/apex.go b/apex/apex.go
index f3940681..894439fd 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -91,7 +91,7 @@ func makeApexAvailableWhitelist() map[string][]string {
//
// Module separator
//
- m["com.android.art"] = []string{
+ artApexContents := []string{
"art_cmdlineparser_headers",
"art_disassembler_headers",
"art_libartbase_headers",
@@ -152,6 +152,8 @@ func makeApexAvailableWhitelist() map[string][]string {
"libziparchive",
"perfetto_trace_protos",
}
+ m["com.android.art.debug"] = artApexContents
+ m["com.android.art.release"] = artApexContents
//
// Module separator
//
@@ -2183,8 +2185,6 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
func whitelistedApexAvailable(apex, moduleName string) bool {
key := apex
key = strings.Replace(key, "test_", "", 1)
- key = strings.Replace(key, "com.android.art.debug", "com.android.art", 1)
- key = strings.Replace(key, "com.android.art.release", "com.android.art", 1)
// Prebuilt modules (e.g. java_import, etc.) have "prebuilt_" prefix added by the build
// system. Trim the prefix for the check since they are confusing