summaryrefslogtreecommitdiff
path: root/sdk/java_sdk_test.go
diff options
context:
space:
mode:
author Jingwen Chen <jingwen@google.com> 2021-02-24 07:20:12 -0500
committer Jingwen Chen <jingwen@google.com> 2021-02-26 05:17:54 -0500
commit5d8644990bf6124ce5e7911aba838004f482d9f6 (patch)
tree79bdf76dc00cd1eb95200072128a46bfa8e98228 /sdk/java_sdk_test.go
parent8e792689471e15c2617bbf99cde23f35a2430b11 (diff)
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
Diffstat (limited to 'sdk/java_sdk_test.go')
0 files changed, 0 insertions, 0 deletions