Add overrides support for snapshots
Overrides properties will now be captured in json flag files, which will be copied to installed vendor snapshot modules. Bug: 216567575 Test: soong test && manual install Change-Id: Ife5e84b126e798fba7802b9cff000c9197756cb9
This commit is contained in:
@@ -546,7 +546,7 @@ func (c *snapshotLibraryDecorator) AndroidMkEntries(ctx AndroidMkContext, entrie
|
||||
|
||||
entries.SubName += c.baseProperties.Androidmk_suffix
|
||||
|
||||
entries.ExtraEntries = append(entries.ExtraEntries, func(ctx android.AndroidMkExtraEntriesContext, entries *android.AndroidMkEntries) {
|
||||
entries.ExtraEntries = append(entries.ExtraEntries, func(_ android.AndroidMkExtraEntriesContext, entries *android.AndroidMkEntries) {
|
||||
c.libraryDecorator.androidMkWriteExportedFlags(entries)
|
||||
|
||||
if c.shared() || c.static() {
|
||||
@@ -567,6 +567,10 @@ func (c *snapshotLibraryDecorator) AndroidMkEntries(ctx AndroidMkContext, entrie
|
||||
if c.tocFile.Valid() {
|
||||
entries.SetString("LOCAL_SOONG_TOC", c.tocFile.String())
|
||||
}
|
||||
|
||||
if c.shared() && len(c.Properties.Overrides) > 0 {
|
||||
entries.SetString("LOCAL_OVERRIDES_MODULES", strings.Join(makeOverrideModuleNames(ctx, c.Properties.Overrides), " "))
|
||||
}
|
||||
}
|
||||
|
||||
if !c.shared() { // static or header
|
||||
|
Reference in New Issue
Block a user