diff options
| author | 2022-01-10 20:53:39 +0000 | |
|---|---|---|
| committer | 2022-01-10 20:53:39 +0000 | |
| commit | 88a1b9da853bb3277889b33782666c4e9b28e4ef (patch) | |
| tree | 357d902180fa644bfcb90d99b61824049623337f /java/java.go | |
| parent | 865d5e6c9d9c863b4efc5fdd90fad90cc45d9e18 (diff) | |
| parent | 4e27229b61b734afc31923c8f6ddf0c1224aead2 (diff) | |
Merge "Convert javacflags -> javacopts for java_binary_host"
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 6 |
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 { |