diff --git a/build/soong/generator/generator.go b/build/soong/generator/generator.go index 9ee0e7a..f772552 100644 --- a/build/soong/generator/generator.go +++ b/build/soong/generator/generator.go @@ -147,8 +147,6 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { if len(g.properties.Tools) > 0 { ctx.VisitDirectDepsBlueprint(func(module blueprint.Module) { switch ctx.OtherModuleDependencyTag(module) { - case android.SourceDepTag: - // Nothing to do case hostToolDepTag: tool := ctx.OtherModuleName(module) var path android.OptionalPath @@ -186,7 +184,9 @@ func (g *Module) GenerateAndroidBuildActions(ctx android.ModuleContext) { ctx.ModuleErrorf("host tool %q missing output file", tool) } default: - ctx.ModuleErrorf("unknown dependency on %q", ctx.OtherModuleName(module)) + if !android.IsSourceDepTagWithOutputTag(ctx.OtherModuleDependencyTag(module), "") { + ctx.ModuleErrorf("unknown dependency on %q", ctx.OtherModuleName(module)) + } } }) }