AndroidMkEntries() returns multiple AndroidMkEntries structs
AndroidMkEntries now returns multiple AndroidMkEntires so that a module can emit multiple Make modules if needed. Bug: 128708192 Test: m Change-Id: I56b6f76d22943b80329951c5acb80a1b932441ad
This commit is contained in:
@@ -194,13 +194,13 @@ func (module *SdkLibrary) GenerateAndroidBuildActions(ctx android.ModuleContext)
|
||||
})
|
||||
}
|
||||
|
||||
func (module *SdkLibrary) AndroidMkEntries() android.AndroidMkEntries {
|
||||
entries := module.Library.AndroidMkEntries()
|
||||
func (module *SdkLibrary) AndroidMkEntries() []android.AndroidMkEntries {
|
||||
entriesList := module.Library.AndroidMkEntries()
|
||||
entries := &entriesList[0]
|
||||
entries.Required = append(entries.Required, module.xmlFileName())
|
||||
|
||||
entries.ExtraFooters = []android.AndroidMkExtraFootersFunc{
|
||||
func(w io.Writer, name, prefix, moduleDir string, entries *android.AndroidMkEntries) {
|
||||
module.Library.AndroidMkHostDex(w, name, entries)
|
||||
if !Bool(module.sdkLibraryProperties.No_dist) {
|
||||
// Create a phony module that installs the impl library, for the case when this lib is
|
||||
// in PRODUCT_PACKAGES.
|
||||
@@ -252,7 +252,7 @@ func (module *SdkLibrary) AndroidMkEntries() android.AndroidMkEntries {
|
||||
}
|
||||
},
|
||||
}
|
||||
return entries
|
||||
return entriesList
|
||||
}
|
||||
|
||||
// Module name of the stubs library
|
||||
|
Reference in New Issue
Block a user