summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Sam Delmerico <delmerico@google.com> 2022-01-10 20:53:39 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2022-01-10 20:53:39 +0000
commit88a1b9da853bb3277889b33782666c4e9b28e4ef (patch)
tree357d902180fa644bfcb90d99b61824049623337f /java/java.go
parent865d5e6c9d9c863b4efc5fdd90fad90cc45d9e18 (diff)
parent4e27229b61b734afc31923c8f6ddf0c1224aead2 (diff)
Merge "Convert javacflags -> javacopts for java_binary_host"
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 9b4a005f0..73fd9c226 100644
--- a/java/java.go
+++ b/java/java.go
@@ -24,6 +24,7 @@ import (
"strings"
"android/soong/bazel"
+
"github.com/google/blueprint"
"github.com/google/blueprint/proptools"
@@ -2000,6 +2001,7 @@ type javaBinaryHostAttributes struct {
Deps bazel.LabelListAttribute
Main_class string
Jvm_flags bazel.StringListAttribute
+ Javacopts bazel.StringListAttribute
}
// JavaBinaryHostBp2Build is for java_binary_host bp2build.
@@ -2021,6 +2023,10 @@ func javaBinaryHostBp2Build(ctx android.TopDownMutatorContext, m *Binary) {
Main_class: mainClass,
}
+ if m.properties.Javacflags != nil {
+ attrs.Javacopts = bazel.MakeStringListAttribute(m.properties.Javacflags)
+ }
+
// Attribute deps
deps := []string{}
if m.properties.Static_libs != nil {