Merge "Support multiple sources for prebuilt_etc" into main

This commit is contained in:
Thiébaud Weksteen
2024-03-21 23:14:48 +00:00
committed by Gerrit Code Review
4 changed files with 168 additions and 83 deletions

View File

@@ -30,6 +30,7 @@ import (
"android/soong/android"
"android/soong/dexpreopt"
"android/soong/etc"
)
const (
@@ -3174,10 +3175,12 @@ func (module *sdkLibraryXml) SubDir() string {
}
// from android.PrebuiltEtcModule
func (module *sdkLibraryXml) OutputFile() android.OutputPath {
return module.outputFilePath
func (module *sdkLibraryXml) OutputFiles(tag string) (android.Paths, error) {
return android.OutputPaths{module.outputFilePath}.Paths(), nil
}
var _ etc.PrebuiltEtcModule = (*sdkLibraryXml)(nil)
// from android.ApexModule
func (module *sdkLibraryXml) AvailableFor(what string) bool {
return true