diff options
author | 2024-01-09 22:47:39 +0000 | |
---|---|---|
committer | 2024-01-10 14:03:30 +0000 | |
commit | afe7baf47db292f1837d658a42dd3920b8e2bc10 (patch) | |
tree | 861a720fc9651b8a4c1f412328f8497858d14d7d /apex/apex.go | |
parent | acae2d765654a0b1297b35a1de60b4fff2172870 (diff) |
Propagate aconfig providers for more modules.
Bug: 308625757
Test: manual
Change-Id: Iaf6d45a4259f1c6c34476c34c431344283ae2830
Diffstat (limited to 'apex/apex.go')
-rw-r--r-- | apex/apex.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go index ba636f1ea..72886ca99 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -480,6 +480,9 @@ type apexBundle struct { javaApisUsedByModuleFile android.ModuleOutPath aconfigFiles []android.Path + + // Single aconfig "cache file" merged from this module and all dependencies. + mergedAconfigFiles map[string]android.Paths } // apexFileClass represents a type of file that can be included in APEX. @@ -2356,6 +2359,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) { return } } + android.CollectDependencyAconfigFiles(ctx, &a.mergedAconfigFiles) //////////////////////////////////////////////////////////////////////////////////////////// // 3) some fields in apexBundle struct are configured @@ -2515,6 +2519,9 @@ func BundleFactory() android.Module { type Defaults struct { android.ModuleBase android.DefaultsModuleBase + + // Single aconfig "cache file" merged from this module and all dependencies. + mergedAconfigFiles map[string]android.Paths } // apex_defaults provides defaultable properties to other apex modules. @@ -2537,6 +2544,10 @@ type OverrideApex struct { android.OverrideModuleBase } +func (d *Defaults) GenerateAndroidBuildActions(ctx android.ModuleContext) { + android.CollectDependencyAconfigFiles(ctx, &d.mergedAconfigFiles) +} + func (o *OverrideApex) GenerateAndroidBuildActions(_ android.ModuleContext) { // All the overrides happen in the base module. } |