summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2023-07-11 15:03:13 +0100
committer Jiakai Zhang <jiakaiz@google.com> 2023-07-11 17:59:05 +0100
commitb1639db53f1df445f08924c6414bba53d9cee512 (patch)
tree4af3b829c418baf986cb912305b01dca12ea5fda /android
parentda47d3c6f3914fca33eddcc4d1ad4c8d3b4ec630 (diff)
Extract duplicate code to common helper functions.
Also, fall back to using a default name for the dexpreopt directory if we are not building for Android. Bug: 290583827 Test: m nothing Change-Id: I3fc6ff9142a2dcdf995796f75891b242fe2848d0
Diffstat (limited to 'android')
-rw-r--r--android/configured_jars.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/configured_jars.go b/android/configured_jars.go
index 53fef052a..1281bae87 100644
--- a/android/configured_jars.go
+++ b/android/configured_jars.go
@@ -311,4 +311,9 @@ func EmptyConfiguredJarList() ConfiguredJarList {
return ConfiguredJarList{}
}
+// IsConfiguredJarForPlatform returns true if the given apex name is a special name for the platform.
+func IsConfiguredJarForPlatform(apex string) bool {
+ return apex == "platform" || apex == "system_ext"
+}
+
var earlyBootJarsKey = NewOnceKey("earlyBootJars")