From c157a8d0e58e665b011b928e651213c3e67bfa85 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 3 Oct 2017 17:17:07 -0700 Subject: [PATCH] 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 --- java/java.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java.go b/java/java.go index 3eadbb658..9cde82408 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