aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-10-03 17:17:07 -0700
committerColin Cross <ccross@android.com>2017-10-04 15:00:27 +0000
commitc157a8d0e58e665b011b928e651213c3e67bfa85 (patch)
tree0d8e5f1e69739e5c917f6a1b1b9e36cf73df4f71 /java
parent8b30a5599daf3810695704160a48c61390740e3e (diff)
downloadbuild_soong-c157a8d0e58e665b011b928e651213c3e67bfa85.tar.gz
build_soong-c157a8d0e58e665b011b928e651213c3e67bfa85.tar.bz2
build_soong-c157a8d0e58e665b011b928e651213c3e67bfa85.zip
Allow libraries with no sources to be installed
Libraries with no source files but static lib dependencies should still be installable. Test: m -j checkbuild Change-Id: Ibc91aa3153241092ce86888dbf90e99b66069ff2
Diffstat (limited to 'java')
-rw-r--r--java/java.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/java.go b/java/java.go
index 3eadbb65..9cde8240 100644
--- a/java/java.go
+++ b/java/java.go
@@ -527,7 +527,7 @@ func (j *Module) compile(ctx android.ModuleContext) {
j.classpathFile = outputFile
// TODO(ccross): handle hostdex
- if ctx.Device() && len(srcFiles) > 0 && j.installable() {
+ if ctx.Device() && j.installable() {
dxFlags := j.deviceProperties.Dxflags
if false /* emma enabled */ {
// If you instrument class files that have local variable debug information in