summaryrefslogtreecommitdiff
path: root/java/aar.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-08-28 11:55:52 -0700
committer Cole Faust <colefaust@google.com> 2024-09-05 14:16:37 -0700
commitb749347fa5cc9cd4018a8ebae0b6df37c2afa70e (patch)
tree4facf258db0310cd1915a3d18217b5f19fccc55a /java/aar.go
parentd18adf146f6a5f8acea1ad30e50aed24235c72c7 (diff)
Make the java static_libs property configurable
Bug: 362579941 Test: m nothing --no-skip-soong-tests Change-Id: Iccc93cf14753aae1adb26c6eedd00aabf1c2f6a6
Diffstat (limited to 'java/aar.go')
-rw-r--r--java/aar.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/aar.go b/java/aar.go
index 42866f8b6..0639e6426 100644
--- a/java/aar.go
+++ b/java/aar.go
@@ -970,7 +970,7 @@ type AARImportProperties struct {
// Defaults to sdk_version if not set. See sdk_version for possible values.
Min_sdk_version *string
// List of java static libraries that the included ARR (android library prebuilts) has dependencies to.
- Static_libs []string
+ Static_libs proptools.Configurable[[]string]
// List of java libraries that the included ARR (android library prebuilts) has dependencies to.
Libs []string
// If set to true, run Jetifier against .aar file. Defaults to false.
@@ -1100,7 +1100,7 @@ func (a *AARImport) DepsMutator(ctx android.BottomUpMutatorContext) {
}
ctx.AddVariationDependencies(nil, libTag, a.properties.Libs...)
- ctx.AddVariationDependencies(nil, staticLibTag, a.properties.Static_libs...)
+ ctx.AddVariationDependencies(nil, staticLibTag, a.properties.Static_libs.GetOrDefault(ctx, nil)...)
a.usesLibrary.deps(ctx, false)
}