diff options
Diffstat (limited to 'java/app.go')
-rwxr-xr-x | java/app.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/app.go b/java/app.go index f57459902..7ae73f797 100755 --- a/java/app.go +++ b/java/app.go @@ -1436,6 +1436,7 @@ type bazelAndroidAppAttributes struct { Manifest bazel.Label Custom_package *string Resource_files bazel.LabelListAttribute + Deps bazel.LabelListAttribute } // ConvertWithBp2build is used to convert android_app to Bazel. @@ -1453,12 +1454,15 @@ func (a *AndroidApp) ConvertWithBp2build(ctx android.TopDownMutatorContext) { resourceFiles.Includes = append(resourceFiles.Includes, files...) } + deps := bazel.MakeLabelListAttribute(android.BazelLabelForModuleDeps(ctx, a.properties.Static_libs)) + attrs := &bazelAndroidAppAttributes{ Srcs: srcs, Manifest: android.BazelLabelForModuleSrcSingle(ctx, manifest), // TODO(b/209576404): handle package name override by product variable PRODUCT_MANIFEST_PACKAGE_NAME_OVERRIDES Custom_package: a.overridableAppProperties.Package_name, Resource_files: bazel.MakeLabelListAttribute(resourceFiles), + Deps: deps, } props := bazel.BazelTargetModuleProperties{Rule_class: "android_binary", Bzl_load_location: "@rules_android//rules:rules.bzl"} |