2024-04-08 23:13:23 +02:00
|
|
|
foo = select(soong_config_variable("my_namespace", "my_var"), {
|
|
|
|
// ^ keyword.conditional
|
|
|
|
"foo": unset,
|
2024-07-01 15:53:48 +02:00
|
|
|
any @ foo: unset,
|
|
|
|
// ^ operator
|
|
|
|
// ^ variable
|
2024-04-08 23:13:23 +02:00
|
|
|
default: "bar",
|
|
|
|
})
|
|
|
|
|
|
|
|
// It can still be used as a normal variable name
|
|
|
|
select = 42
|
|
|
|
// <- variable
|
|
|
|
|
|
|
|
// Or module property
|
|
|
|
foo {
|
|
|
|
select: 42,
|
2024-04-10 17:21:07 +02:00
|
|
|
// <- variable.parameter
|
2024-04-08 23:13:23 +02:00
|
|
|
}
|