platform_build_blueprint/parser
Cole Faust 3311debbb3 Support multi-variable selects and typed selects
This adds support for selecting on multiple variables at once, so that
you can do AND/OR combindations of them. For example:

select((
    arch(),
    os(),
), {
    ("arm64", "linux"): ["libfoo64"],
    (default, "linux"): ["libfoo"],
    (default, "windows"): ["libfoowindows"],
    (default, default): ["libbar"],
})

It also allows for select conditions to be boolean-typed. You can
write literal true and false without quotes to select on them. Currently
we don't have any boolean-typed variables though, so a fake one was
added for testing.

Bug: 323382414
Test: m nothing --no-skip-soong-tests
Change-Id: Ibe586e7b21865b8734027848cc421594cbd1d8cc
2024-04-12 16:33:01 -07:00
..
ast.go Support multi-variable selects and typed selects 2024-04-12 16:33:01 -07:00
modify.go Add multiple property and replace functionality to bpmodify. 2022-08-08 17:58:11 +00:00
modify_test.go Add Patch and PatchList for making textual changes 2018-04-10 16:50:39 -07:00
parser.go Support multi-variable selects and typed selects 2024-04-12 16:33:01 -07:00
parser_test.go Support multi-variable selects and typed selects 2024-04-12 16:33:01 -07:00
printer.go Support multi-variable selects and typed selects 2024-04-12 16:33:01 -07:00
printer_test.go Support multi-variable selects and typed selects 2024-04-12 16:33:01 -07:00
sort.go bpfmt: Preserve line of comment when sorting arrays 2023-05-17 13:36:13 -07:00
sort_test.go Fix numericStringLess and add tests 2021-03-08 17:59:55 -08:00