aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-09-25 13:23:16 +0400
committerXavier Claessens <xclaesse@gmail.com>2019-09-29 08:42:53 -0400
commita65d5801f363f70c01bc76c562d9b9e820dc52aa (patch)
tree8c50a9c7f66de012619e61a7dbdfaddd1bed0519 /docs/markdown/snippets
parent18897b6afd35d7369658c9ecf562e2425256d6a9 (diff)
downloadmeson-a65d5801f363f70c01bc76c562d9b9e820dc52aa.zip
meson-a65d5801f363f70c01bc76c562d9b9e820dc52aa.tar.gz
meson-a65d5801f363f70c01bc76c562d9b9e820dc52aa.tar.bz2
environment: Support taking values from dict
Related to #5955.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/env_dict.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/env_dict.md b/docs/markdown/snippets/env_dict.md
new file mode 100644
index 0000000..5949806
--- /dev/null
+++ b/docs/markdown/snippets/env_dict.md
@@ -0,0 +1,8 @@
+## Support taking environment values from a dictionary
+
+`environment()` now accepts a dictionary as first argument. If
+provided, each key/value pair is added into the `environment_object`
+as if `set()` method was called for each of them.
+
+On the various functions that take an `env:` keyword argument, you may
+now give a dictionary.