summaryrefslogtreecommitdiff
path: root/apex/apex.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-03 10:13:13 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-01-03 10:13:13 -0800
commite530ab6420f2c5a5e851a8bbd592e174c69147a3 (patch)
tree1b95275a85b52638e06f0b8dc590a7907c2ea967 /apex/apex.go
parent9f6cee1eb5af46e8e75db15668755e59cb153624 (diff)
parent7701d5fe1221a7c653385ea52cae2d3580b2c6b5 (diff)
Merge "Introduce a singleton module to collect apex certs" into main
Diffstat (limited to 'apex/apex.go')
-rw-r--r--apex/apex.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go
index 375d5af17..773439152 100644
--- a/apex/apex.go
+++ b/apex/apex.go
@@ -888,8 +888,20 @@ func (a *apexBundle) DepsMutator(ctx android.BottomUpMutatorContext) {
ctx.AddFarVariationDependencies(commonVariation, javaLibTag, a.properties.Java_libs...)
ctx.AddFarVariationDependencies(commonVariation, fsTag, a.properties.Filesystems...)
ctx.AddFarVariationDependencies(commonVariation, compatConfigTag, a.properties.Compat_configs...)
+
+ // Add a reverse dependency to all_apex_certs singleton module.
+ // all_apex_certs will use this dependency to collect the certificate of this apex.
+ ctx.AddReverseDependency(ctx.Module(), allApexCertsDepTag, "all_apex_certs")
+}
+
+type allApexCertsDependencyTag struct {
+ blueprint.DependencyTag
}
+func (_ allApexCertsDependencyTag) ExcludeFromVisibilityEnforcement() {}
+
+var allApexCertsDepTag = allApexCertsDependencyTag{}
+
// DepsMutator for the overridden properties.
func (a *apexBundle) OverridablePropertiesDepsMutator(ctx android.BottomUpMutatorContext) {
if a.overridableProperties.Allowed_files != nil {