soong: generator: Replace android.SourceDepTag usage with IsSourceDepTagWithOutputTag

Change-Id: Iad5d9a07d06a7efda233cc8d3387e8db5c3b0ab5
(cherry picked from commit 994d8647f5519f6ce107de1e98b0f9130ae47aa2)
This commit is contained in:
Arian
2022-08-17 19:28:53 +02:00
committed by bigbiff
parent cbcba43dbe
commit 6200d85e2d
+3 -3
View File
@@ -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))
}
}
})
}