diff options
author | Volker Weißmann <volker.weissmann@gmx.de> | 2023-04-24 15:26:54 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-04-26 14:51:10 -0400 |
commit | 38b35eca3009a391d4f92b88ff09ab383c79c1f2 (patch) | |
tree | dc1eba10f622e89dae9cb7f00b25326783363e65 /docs/markdown | |
parent | bf44120a4f272652f98c607bd05065e8a0492d3a (diff) | |
download | meson-38b35eca3009a391d4f92b88ff09ab383c79c1f2.zip meson-38b35eca3009a391d4f92b88ff09ab383c79c1f2.tar.gz meson-38b35eca3009a391d4f92b88ff09ab383c79c1f2.tar.bz2 |
Add env kwarg to gnome.generate_gir().
Fixes #384
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/Gnome-module.md | 3 | ||||
-rw-r--r-- | docs/markdown/snippets/generate_gir_kwarg_env.md | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index 85b101a..7b7b595 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -92,6 +92,9 @@ There are several keyword arguments. Many of these map directly to the * `dependencies`: deps to use during introspection scanning * `extra_args`: command line arguments to pass to gir compiler +* `env`: (*Added 1.2.0*) environment variables to set, such as + `{'NAME1': 'value1', 'NAME2': 'value2'}` or `['NAME1=value1', 'NAME2=value2']`, + or an [[@env]] object which allows more sophisticated environment juggling. * `export_packages`: extra packages the gir file exports * `sources`: the list of sources to be scanned for gir data * `nsversion`: namespace version diff --git a/docs/markdown/snippets/generate_gir_kwarg_env.md b/docs/markdown/snippets/generate_gir_kwarg_env.md new file mode 100644 index 0000000..c313b40 --- /dev/null +++ b/docs/markdown/snippets/generate_gir_kwarg_env.md @@ -0,0 +1,3 @@ +## `gnome.generate_gir()` now supports `env` kwarg + +`gnome.generate_gir()` now accepts the `env` kwarg which lets you set environment variables. |