Merge "Add libs properties to runtime_resource_overlay." into rvc-dev am: 1883126573

Change-Id: I74d3bacdeefefd2736448164841081668c714072
This commit is contained in:
Jaewoong Jung
2020-04-10 18:06:40 +00:00
committed by Automerger Merge Worker
2 changed files with 44 additions and 2 deletions

View File

@@ -1369,6 +1369,12 @@ type RuntimeResourceOverlayProperties struct {
// if not blank, set the minimum version of the sdk that the compiled artifacts will run against.
// Defaults to sdk_version if not set.
Min_sdk_version *string
// list of android_library modules whose resources are extracted and linked against statically
Static_libs []string
// list of android_app modules whose resources are extracted and linked against
Resource_libs []string
}
func (r *RuntimeResourceOverlay) DepsMutator(ctx android.BottomUpMutatorContext) {
@@ -1381,6 +1387,9 @@ func (r *RuntimeResourceOverlay) DepsMutator(ctx android.BottomUpMutatorContext)
if cert != "" {
ctx.AddDependency(ctx.Module(), certificateTag, cert)
}
ctx.AddVariationDependencies(nil, staticLibTag, r.properties.Static_libs...)
ctx.AddVariationDependencies(nil, libTag, r.properties.Resource_libs...)
}
func (r *RuntimeResourceOverlay) GenerateAndroidBuildActions(ctx android.ModuleContext) {