Merge "Fix droiddoc disting when WITHOUT_CHECK_API is true."
This commit is contained in:
@@ -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.
|
||||
|
@@ -569,6 +569,12 @@ type commonProperties struct {
|
||||
type TaggedDistFiles map[string]Paths
|
||||
|
||||
func MakeDefaultDistFiles(paths ...Path) TaggedDistFiles {
|
||||
for _, path := range paths {
|
||||
if path == nil {
|
||||
panic("The path to a dist file cannot be nil.")
|
||||
}
|
||||
}
|
||||
|
||||
// The default OutputFile tag is the empty "" string.
|
||||
return TaggedDistFiles{"": paths}
|
||||
}
|
||||
|
Reference in New Issue
Block a user