Propagate aconfig providers for more modules.
Bug: 308625757 Test: manual Change-Id: Iaf6d45a4259f1c6c34476c34c431344283ae2830
This commit is contained in:
@@ -155,6 +155,9 @@ type PrebuiltEtc struct {
|
||||
additionalDependencies *android.Paths
|
||||
|
||||
makeClass string
|
||||
|
||||
// Aconfig files for all transitive deps. Also exposed via TransitiveDeclarationsInfo
|
||||
mergedAconfigFiles map[string]android.Paths
|
||||
}
|
||||
|
||||
type Defaults struct {
|
||||
@@ -365,6 +368,7 @@ func (p *PrebuiltEtc) GenerateAndroidBuildActions(ctx android.ModuleContext) {
|
||||
symlinks: p.properties.Symlinks,
|
||||
}
|
||||
p.addInstallRules(ctx, ip)
|
||||
android.CollectDependencyAconfigFiles(ctx, &p.mergedAconfigFiles)
|
||||
}
|
||||
|
||||
type installProperties struct {
|
||||
@@ -433,11 +437,16 @@ func (p *PrebuiltEtc) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
if p.additionalDependencies != nil {
|
||||
entries.AddStrings("LOCAL_ADDITIONAL_DEPENDENCIES", p.additionalDependencies.Strings()...)
|
||||
}
|
||||
android.SetAconfigFileMkEntries(p.AndroidModuleBase(), entries, p.mergedAconfigFiles)
|
||||
},
|
||||
},
|
||||
}}
|
||||
}
|
||||
|
||||
func (p *PrebuiltEtc) AndroidModuleBase() *android.ModuleBase {
|
||||
return &p.ModuleBase
|
||||
}
|
||||
|
||||
func InitPrebuiltEtcModule(p *PrebuiltEtc, dirBase string) {
|
||||
p.installDirBase = dirBase
|
||||
p.AddProperties(&p.properties)
|
||||
|
Reference in New Issue
Block a user