No description
6437d4e737
Select statements are a new blueprint feature inspired by bazel's select statements. They are essentially alternative syntax for soong config variables that require less boilerplate. In addition, they support making decisions based on a module's variant, which will eliminate the need for manual property struct manipulation, such as the arch mutator's arch: and target: properties. In order to support decisions based on the variant, select statements cannot be evaluated as soon as they're parsed. Instead, they must be stored in the property struct unevaluated. This means that individual properties need to change their type from say, string, to Configurable[string]. Currently, only configurable strings, bools, and string slices are supported, but more types can be added later. The module implementation must call my_property.Evaluate(ctx) in order to get the final, resolved value of the select statement. Bug: 323382414 Test: go tests Change-Id: I62f8721d7f0ac3d1df4a06d7eaa260a5aa7fcba3 |
||
---|---|---|
.github/workflows | ||
bootstrap | ||
bpfmt | ||
bpmodify | ||
deptools | ||
gotestmain | ||
gotestrunner | ||
loadplugins | ||
metrics | ||
microfactory | ||
parser | ||
pathtools | ||
proptools | ||
tests | ||
.gitignore | ||
.gofmt.sh | ||
Android.bp | ||
CODEOWNERS | ||
context.go | ||
context_test.go | ||
CONTRIBUTING.md | ||
doc.go | ||
glob.go | ||
glob_test.go | ||
go.mod | ||
levenshtein.go | ||
levenshtein_test.go | ||
LICENSE | ||
live_tracker.go | ||
mangle.go | ||
module_ctx.go | ||
module_ctx_test.go | ||
name_interface.go | ||
ninja_defs.go | ||
ninja_strings.go | ||
ninja_strings_test.go | ||
ninja_writer.go | ||
ninja_writer_test.go | ||
OWNERS | ||
package_ctx.go | ||
PREUPLOAD.cfg | ||
provider.go | ||
provider_test.go | ||
README.md | ||
scope.go | ||
singleton_ctx.go | ||
source_file_provider.go | ||
splice_modules_test.go | ||
visit_test.go |
Blueprint Build System
Blueprint is part of Soong.
For more information, see build/soong/README.md
.