diff options
author | 2021-10-01 20:36:53 +0000 | |
---|---|---|
committer | 2021-10-01 20:36:53 +0000 | |
commit | e9f157a07cc3b8f5f02c002cde63bc4a5c2b77f3 (patch) | |
tree | 933e5abaadfa073cb4380470029096c2d6a7cc6a /python/binary.go | |
parent | 2df9ebf9cae3cb160926816548882c7f7db2e39d (diff) | |
parent | 19d399d4c58e2883c6aa453d6fad834313ce6d44 (diff) |
Merge "Have python_*{,_host} handle arch-variants"
Diffstat (limited to 'python/binary.go')
-rw-r--r-- | python/binary.go | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/python/binary.go b/python/binary.go index bc2768c72..afcc53a65 100644 --- a/python/binary.go +++ b/python/binary.go @@ -63,6 +63,7 @@ func PythonBinaryBp2Build(ctx android.TopDownMutatorContext) { } } } + // TODO(b/182306917): this doesn't fully handle all nested props versioned // by the python version, which would have been handled by the version split // mutator. This is sufficient for very simple python_binary_host modules @@ -80,15 +81,12 @@ func PythonBinaryBp2Build(ctx android.TopDownMutatorContext) { // do nothing, since python_version defaults to PY3. } - srcs := android.BazelLabelForModuleSrcExcludes(ctx, m.properties.Srcs, m.properties.Exclude_srcs) - data := android.BazelLabelForModuleSrc(ctx, m.properties.Data) - deps := android.BazelLabelForModuleDeps(ctx, m.properties.Libs) - + baseAttrs := m.makeArchVariantBaseAttributes(ctx) attrs := &bazelPythonBinaryAttributes{ Main: main, - Srcs: bazel.MakeLabelListAttribute(srcs), - Data: bazel.MakeLabelListAttribute(data), - Deps: bazel.MakeLabelListAttribute(deps), + Srcs: baseAttrs.Srcs, + Data: baseAttrs.Data, + Deps: baseAttrs.Deps, Python_version: python_version, } |