diff options
author | 2019-06-13 03:36:08 +0000 | |
---|---|---|
committer | 2019-06-13 03:36:08 +0000 | |
commit | e51e2feafdf7dbb84d41850237dd4858b98d93f2 (patch) | |
tree | fca1cc7df3572afabd7aefa94d98d3b53e1b2850 /java/app.go | |
parent | 72ea641dffd8b6d037d1529ea6946c726a624f14 (diff) | |
parent | 3245b2cb83342fa162822832d0d9adde2f0c5bed (diff) |
Merge changes I89ad92f3,Ife1604c0
* changes:
Don't add dependencies on uses-library modules in unbundled builds
Add implicit outputs to ErrorRule rules
Diffstat (limited to 'java/app.go')
-rw-r--r-- | java/app.go | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/java/app.go b/java/app.go index cf9354f57..78e05012c 100644 --- a/java/app.go +++ b/java/app.go @@ -938,16 +938,18 @@ type usesLibrary struct { } func (u *usesLibrary) deps(ctx android.BottomUpMutatorContext, noFrameworkLibs bool) { - ctx.AddVariationDependencies(nil, usesLibTag, u.usesLibraryProperties.Uses_libs...) - ctx.AddVariationDependencies(nil, usesLibTag, u.presentOptionalUsesLibs(ctx)...) - if !noFrameworkLibs { - // dexpreopt/dexpreopt.go needs the paths to the dex jars of these libraries in case construct_context.sh needs - // to pass them to dex2oat. Add them as a dependency so we can determine the path to the dex jar of each - // library to dexpreopt. - ctx.AddVariationDependencies(nil, usesLibTag, - "org.apache.http.legacy", - "android.hidl.base-V1.0-java", - "android.hidl.manager-V1.0-java") + if !ctx.Config().UnbundledBuild() { + ctx.AddVariationDependencies(nil, usesLibTag, u.usesLibraryProperties.Uses_libs...) + ctx.AddVariationDependencies(nil, usesLibTag, u.presentOptionalUsesLibs(ctx)...) + if !noFrameworkLibs { + // dexpreopt/dexpreopt.go needs the paths to the dex jars of these libraries in case construct_context.sh needs + // to pass them to dex2oat. Add them as a dependency so we can determine the path to the dex jar of each + // library to dexpreopt. + ctx.AddVariationDependencies(nil, usesLibTag, + "org.apache.http.legacy", + "android.hidl.base-V1.0-java", + "android.hidl.manager-V1.0-java") + } } } |