platform_build_soong/bazel
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 Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
aquery.go Support aquery depsets with depth 2021-01-19 21:50:32 +00:00
aquery_test.go Support aquery depsets with depth 2021-01-19 21:50:32 +00:00
constants.go Enable bazel profiling in soong_build. 2020-12-14 18:48:11 +00:00
properties.go bp2build: add configurable attribute (select) support. 2021-02-26 05:17:54 -05:00