Use dependency tags for java modules

Test: java_test.go
Change-Id: Id265a2acd6e6c4ce7764f77c888e22b1fddc02c4
This commit is contained in:
Colin Cross
2017-07-07 15:59:46 -07:00
parent ec7a0424c3
commit be1da475d0
2 changed files with 47 additions and 61 deletions

View File

@@ -68,17 +68,14 @@ type AndroidApp struct {
func (a *AndroidApp) DepsMutator(ctx android.BottomUpMutatorContext) {
a.Module.deps(ctx)
var deps []string
if !a.properties.No_standard_libraries {
switch a.deviceProperties.Sdk_version { // TODO: Res_sdk_version?
case "current", "system_current", "":
deps = append(deps, "framework-res")
ctx.AddDependency(ctx.Module(), frameworkResTag, "framework-res")
default:
// We'll already have a dependency on an sdk prebuilt android.jar
}
}
ctx.AddDependency(ctx.Module(), nil, deps...)
}
func (a *AndroidApp) GenerateAndroidBuildActions(ctx android.ModuleContext) {