Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1255a561 authored by Colin Cross's avatar Colin Cross
Browse files

Fix ALLOW_MISSING_DEPENDENCIES=true builds

Don't error out immediately if a SourceDepTag dependency is missing
if ALLOW_MISSING_DEPENDENCIES=true is set.

Test: forrest on unbundled build
Change-Id: I9077013e09e3ad0e90ae5163b26aace5b263e63a
parent 38bfc16c
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -1441,7 +1441,11 @@ func (ctx *androidModuleContext) ExpandSourcesSubDir(srcFiles, excludes []string
		if m := SrcIsModule(e); m != "" {
			module := ctx.GetDirectDepWithTag(m, SourceDepTag)
			if module == nil {
				if ctx.Config().AllowMissingDependencies() {
					ctx.AddMissingDependencies([]string{m})
				} else {
					ctx.ModuleErrorf(`missing dependency on %q, is the property annotated with android:"path"?`, m)
				}
				continue
			}
			if srcProducer, ok := module.(SourceFileProducer); ok {
@@ -1458,7 +1462,11 @@ func (ctx *androidModuleContext) ExpandSourcesSubDir(srcFiles, excludes []string
		if m := SrcIsModule(s); m != "" {
			module := ctx.GetDirectDepWithTag(m, SourceDepTag)
			if module == nil {
				if ctx.Config().AllowMissingDependencies() {
					ctx.AddMissingDependencies([]string{m})
				} else {
					ctx.ModuleErrorf(`missing dependency on %q, is the property annotated with android:"path"?`, m)
				}
				continue
			}
			if srcProducer, ok := module.(SourceFileProducer); ok {