platform_build_soong/bp2build
Jingwen Chen 5d8644990b bp2build: add configurable attribute (select) support.
This CL adds a basic framework to support configurable string_list
attributes, selecting on the Arch variant (x86, x86_64, arm, arm64).

It offers fine-grained controls to map individual configurable
properties (arch_variant) to configurable Bazel attributes, starting
with the string_list type for the copts property for cc_object.

This design is primarily motivated to have minimal boilerplate in
bp2build mutators, allowing anyone to opt-in configurable attributes,
and modify intermediate states before passing them on into the
CreateBazelTargetModule instantiator.

Fixes: 178130668

Test: go tests
Test: build/bazel/scripts/milestone-2/demo.sh

Change-Id: Id6f04d7c560312a93e193d7ca4e1b7ceb6062260
2021-02-26 05:17:54 -05:00
..
Android.bp bp2build: add configurable attribute (select) support. 2021-02-26 05:17:54 -05:00
androidbp_to_build_templates.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bp2build.go bp2build: add a simple UI to report migration progress. 2021-02-19 09:30:11 -05:00
build_conversion.go bp2build: add configurable attribute (select) support. 2021-02-26 05:17:54 -05:00
build_conversion_test.go bp2build: Unexport GenerateBazelTargetsForDir. 2021-02-22 10:22:58 -05:00
bzl_conversion.go queryview: prefix internal attribute names. 2021-01-25 04:46:07 -05:00
bzl_conversion_test.go bp2build: add bazel_module: { bp2build_available } prop. 2021-02-05 09:26:22 -05:00
cc_library_headers_conversion_test.go bp2build: Unexport GenerateBazelTargetsForDir. 2021-02-22 10:22:58 -05:00
cc_object_conversion_test.go bp2build: add configurable attribute (select) support. 2021-02-26 05:17:54 -05:00
configurability.go bp2build: add configurable attribute (select) support. 2021-02-26 05:17:54 -05:00
conversion.go queryview: add "size" to ignored prop. 2021-02-24 19:55:50 -05:00
conversion_test.go bp2build: support Starlark rules and load statements. 2021-01-26 22:46:20 -05:00
metrics.go bp2build: add a simple UI to report migration progress. 2021-02-19 09:30:11 -05:00
sh_conversion_test.go bp2build: Unexport GenerateBazelTargetsForDir. 2021-02-22 10:22:58 -05:00
testing.go Merge "Move bazel.Properties to a BazelModuleBase" 2021-02-24 05:53:25 +00:00