Merge "Fix droiddoc disting when WITHOUT_CHECK_API is true."

This commit is contained in:
Jingwen Chen
2020-08-10 05:22:24 +00:00
committed by Gerrit Code Review
3 changed files with 19 additions and 4 deletions

View File

@@ -183,12 +183,15 @@ func (a *AndroidMkEntries) GetDistForGoals(mod blueprint.Module) []string {
name := amod.BaseModuleName()
var ret []string
var availableTaggedDists TaggedDistFiles
availableTaggedDists := TaggedDistFiles{}
if a.DistFiles != nil {
availableTaggedDists = a.DistFiles
} else if a.OutputFile.Valid() {
availableTaggedDists = MakeDefaultDistFiles(a.OutputFile.Path())
} else {
// Nothing dist-able for this module.
return nil
}
// Iterate over this module's dist structs, merged from the dist and dists properties.