summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
author Dan Willemsen <dwillemsen@google.com> 2020-03-23 19:39:34 -0700
committer Dan Willemsen <dwillemsen@google.com> 2020-03-23 22:42:32 -0700
commit2b8b89cfa2f3678ec01c6ef576bd9c88b1e8a248 (patch)
tree7944e4545854b449cc3f3ddbdbb64ff1fe369bef /README.md
parentb358ebb7598dc941213ad3a9445e035c5f768fcc (diff)
soong_config: bool_variables shortcut
Using a lot of boolean variables can become very verbose without adding really any new information: variables: ["a", "b", "c"], } soong_config_bool_variable { name: "a", } soong_config_bool_variable { name: "b", } soong_config_bool_variable { name: "c", } Now turns into: bool_variables: ["a", "b", "c"], } Test: built-in tests Change-Id: If5455a38433431c7ecbce1e5b32cfbb47f42602a
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 2 insertions, 5 deletions
diff --git a/README.md b/README.md
index b1bb42527..3eac87b1f 100644
--- a/README.md
+++ b/README.md
@@ -419,7 +419,8 @@ soong_config_module_type {
name: "acme_cc_defaults",
module_type: "cc_defaults",
config_namespace: "acme",
- variables: ["board", "feature"],
+ variables: ["board"],
+ bool_variables: ["feature"],
properties: ["cflags", "srcs"],
}
@@ -427,10 +428,6 @@ soong_config_string_variable {
name: "board",
values: ["soc_a", "soc_b"],
}
-
-soong_config_bool_variable {
- name: "feature",
-}
```
This example describes a new `acme_cc_defaults` module type that extends the