summaryrefslogtreecommitdiff
path: root/java/rro.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/rro.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/rro.go')
-rw-r--r--java/rro.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/java/rro.go b/java/rro.go
index 0fc6e1c6f..8bb9be2eb 100644
--- a/java/rro.go
+++ b/java/rro.go
@@ -17,7 +17,11 @@ package java
// This file contains the module implementations for runtime_resource_overlay and
// override_runtime_resource_overlay.
-import "android/soong/android"
+import (
+ "android/soong/android"
+
+ "github.com/google/blueprint/proptools"
+)
func init() {
RegisterRuntimeResourceOverlayBuildComponents(android.InitRegistrationContext)
@@ -71,7 +75,7 @@ type RuntimeResourceOverlayProperties struct {
Min_sdk_version *string
// list of android_library modules whose resources are extracted and linked against statically
- Static_libs []string
+ Static_libs proptools.Configurable[[]string]
// list of android_app modules whose resources are extracted and linked against
Resource_libs []string
@@ -120,7 +124,7 @@ func (r *RuntimeResourceOverlay) DepsMutator(ctx android.BottomUpMutatorContext)
ctx.AddDependency(ctx.Module(), certificateTag, cert)
}
- ctx.AddVariationDependencies(nil, staticLibTag, r.properties.Static_libs...)
+ ctx.AddVariationDependencies(nil, staticLibTag, r.properties.Static_libs.GetOrDefault(ctx, nil)...)
ctx.AddVariationDependencies(nil, libTag, r.properties.Resource_libs...)
for _, aconfig_declaration := range r.aaptProperties.Flags_packages {