Use blueprint DependencyTags

Blueprint now requres DependencyTags to be passed to AddDependency
calls.  Use the tags to avoid setting member variables on modules, which
will be lost after the mutators have been called.

Change-Id: I8c1d9ed1db85a300e14394b911a516d361ba9f75
This commit is contained in:
Colin Cross
2016-04-11 15:06:20 -07:00
parent 8141347295
commit c99deeb961
5 changed files with 213 additions and 175 deletions

View File

@@ -193,7 +193,7 @@ var defaultJavaLibraries = []string{"core-libart", "core-junit", "ext", "framewo
func javaDepsMutator(ctx common.AndroidBottomUpMutatorContext) {
if j, ok := ctx.Module().(JavaModuleType); ok {
ctx.AddDependency(ctx.Module(), j.JavaDependencies(ctx)...)
ctx.AddDependency(ctx.Module(), nil, j.JavaDependencies(ctx)...)
}
}