summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2025-01-09 16:04:41 -0800
committer Colin Cross <ccross@android.com> 2025-02-03 22:19:24 -0800
commitc5f4de515f5d1686ed5164dddc2f28134c9aeee4 (patch)
tree13db03729716c67dc7ea5dd5b78408644cd66cb5
parent1115b4bf39bb343d3bb2b47d2796496bac13e61e (diff)
Don't enforce visiblity on platformBootclasspathImplLibDepTag
When the dependencies that use platformBootclasspathImplLibDepTag are moved earlier they are checked by the visibility enforcement mutator. Implement ExcludeFromVisibilityEnforcementTag so they don't require visibility. Test: go test ./... Change-Id: I6019228561530bd406936fd0d2a16eff471c148d
-rw-r--r--java/platform_bootclasspath.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/java/platform_bootclasspath.go b/java/platform_bootclasspath.go
index 152eb1eeb..86062d489 100644
--- a/java/platform_bootclasspath.go
+++ b/java/platform_bootclasspath.go
@@ -15,6 +15,8 @@
package java
import (
+ "github.com/google/blueprint"
+
"android/soong/android"
"android/soong/dexpreopt"
)
@@ -33,9 +35,18 @@ var (
platformBootclasspathArtBootJarDepTag = bootclasspathDependencyTag{name: "art-boot-jar"}
platformBootclasspathBootJarDepTag = bootclasspathDependencyTag{name: "platform-boot-jar"}
platformBootclasspathApexBootJarDepTag = bootclasspathDependencyTag{name: "apex-boot-jar"}
- platformBootclasspathImplLibDepTag = dependencyTag{name: "impl-lib-tag"}
)
+type platformBootclasspathImplLibDepTagType struct {
+ blueprint.BaseDependencyTag
+}
+
+func (p platformBootclasspathImplLibDepTagType) ExcludeFromVisibilityEnforcement() {}
+
+var platformBootclasspathImplLibDepTag platformBootclasspathImplLibDepTagType
+
+var _ android.ExcludeFromVisibilityEnforcementTag = platformBootclasspathImplLibDepTag
+
type platformBootclasspathModule struct {
android.ModuleBase
ClasspathFragmentBase