summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Mark White <anothermark@google.com> 2023-08-22 21:28:11 +0000
committer Mark White <anothermark@google.com> 2023-08-22 21:29:05 +0000
commita15790ac1e0703cd910c21cfd2322b8a61a3b559 (patch)
tree407311e9249de482419f7721a912dfc7c53edae0 /java/java.go
parentf5ee8e3ffc406482ec4e82203541573ddc01e483 (diff)
java_library support for building headers-only
Flag for java_library modules to build just the Turbine headers and skip building an impl jar. Test: go test java Bug: 289776578 Change-Id: Iad0babf951710476bc32df93c25d17065a14ab84
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 70aba8e2c..c60226de6 100644
--- a/java/java.go
+++ b/java/java.go
@@ -692,6 +692,7 @@ func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) {
}
j.checkSdkVersions(ctx)
+ j.checkHeadersOnly(ctx)
if ctx.Device() {
j.dexpreopter.installPath = j.dexpreopter.getInstallPath(
ctx, android.PathForModuleInstall(ctx, "framework", j.Stem()+".jar"))