diff options
author | 2022-06-02 12:11:12 -0700 | |
---|---|---|
committer | 2022-06-09 13:28:25 -0700 | |
commit | 01243368d7a5ef6100582c2efade729888d646f8 (patch) | |
tree | 9bf7d882a038c33aa91b237c5556bb9f04484e7f /python/binary.go | |
parent | 2320e27eb1670df3cf58203ec2c147f133ffbd1e (diff) |
Allowlist apexer for bp2build
This also introduces a workaround for the fact that
apexer depends on aapt2, but aapt2 doesn't build
with bp2build yet. Aapt2 is removed from apexer's
requirements during bp2build.
Bug: 204244290
Test: ./build/bazel/ci/bp2build.sh
Change-Id: I837597ce035c7d5c06e1a3957166583a7a94b5c7
Diffstat (limited to 'python/binary.go')
-rw-r--r-- | python/binary.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/binary.go b/python/binary.go index 99c625916..af29bb6b8 100644 --- a/python/binary.go +++ b/python/binary.go @@ -38,6 +38,7 @@ type bazelPythonBinaryAttributes struct { Srcs bazel.LabelListAttribute Deps bazel.LabelListAttribute Python_version *string + Imports bazel.StringListAttribute } func pythonBinaryBp2Build(ctx android.TopDownMutatorContext, m *Module) { @@ -75,6 +76,7 @@ func pythonBinaryBp2Build(ctx android.TopDownMutatorContext, m *Module) { Srcs: baseAttrs.Srcs, Deps: baseAttrs.Deps, Python_version: python_version, + Imports: baseAttrs.Imports, } props := bazel.BazelTargetModuleProperties{ |