Merge changes I2a3cd53c,I8b9de913
* changes: Prevent replacing missing dependency glob rules with errors Support nested glob patterns
This commit is contained in:
@@ -73,7 +73,7 @@ type globContext interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Glob(ctx globContext, outDir string, globPattern string, excludes []string) ([]string, error) {
|
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"
|
depFile := fileListFile + ".d"
|
||||||
|
|
||||||
// Get a globbed file list, and write out fileListFile and depFile
|
// 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) {
|
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.ninjaError(params.Outputs, fmt.Errorf("module %s missing dependencies: %s\n",
|
||||||
a.ModuleName(), strings.Join(a.missingDeps, ", ")))
|
a.ModuleName(), strings.Join(a.missingDeps, ", ")))
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user