Merge changes I2a3cd53c,I8b9de913 am: 98943a0a63
am: b7130dbf91
* commit 'b7130dbf918b94eefd3ff9f92ebb0d95a8c14872':
Prevent replacing missing dependency glob rules with errors
Support nested glob patterns
Change-Id: I9c4cce71cd07fbb5274f052091c78d0c598be2ca
This commit is contained in:
@@ -73,7 +73,7 @@ type globContext interface {
|
||||
}
|
||||
|
||||
func Glob(ctx globContext, outDir string, globPattern string, excludes []string) ([]string, error) {
|
||||
fileListFile := filepath.Join(outDir, "glob", globToString(globPattern))
|
||||
fileListFile := filepath.Join(outDir, "glob", globToString(globPattern)+".glob")
|
||||
depFile := fileListFile + ".d"
|
||||
|
||||
// Get a globbed file list, and write out fileListFile and depFile
|
||||
|
@@ -440,7 +440,7 @@ func (a *androidModuleContext) ninjaError(outputs []string, err error) {
|
||||
}
|
||||
|
||||
func (a *androidModuleContext) Build(pctx blueprint.PackageContext, params blueprint.BuildParams) {
|
||||
if a.missingDeps != nil {
|
||||
if a.missingDeps != nil && params.Rule != globRule {
|
||||
a.ninjaError(params.Outputs, fmt.Errorf("module %s missing dependencies: %s\n",
|
||||
a.ModuleName(), strings.Join(a.missingDeps, ", ")))
|
||||
return
|
||||
|
Reference in New Issue
Block a user