Use dependency tags for genrules

So that we don't get confused when using :<module> in srcs to depend on
a module that could also be a HostBinTool.

Test: m -j
Change-Id: Ia3b1c26826e70f84c6dc5ff78c95dd11d76901b6
This commit is contained in:
Dan Willemsen
2017-09-13 15:46:47 -07:00
parent d5998cce7d
commit d6ba0d592c
3 changed files with 32 additions and 10 deletions

View File

@@ -249,6 +249,7 @@ func (j *Module) collectDeps(ctx android.ModuleContext) deps {
if dep == nil {
switch tag {
case android.DefaultsDepTag, android.SourceDepTag:
// Nothing to do
default:
ctx.ModuleErrorf("depends on non-java module %q", otherName)
}