diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-03-17 13:27:31 -0400 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2021-03-18 08:37:44 -0400 |
commit | 848e360450c397f1dcfc4d8d3f614df05806699a (patch) | |
tree | 8115c94c08608b28f730daeb42bcebd2fa3e2aef /docs/markdown/snippets | |
parent | c756d9789558d7100383759e4f2aa8d4b2321620 (diff) | |
download | meson-848e360450c397f1dcfc4d8d3f614df05806699a.zip meson-848e360450c397f1dcfc4d8d3f614df05806699a.tar.gz meson-848e360450c397f1dcfc4d8d3f614df05806699a.tar.bz2 |
interpreter: Add varname as positional arg in dep.get_variable()
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/dep_get_variable.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/snippets/dep_get_variable.md b/docs/markdown/snippets/dep_get_variable.md new file mode 100644 index 0000000..54373d9 --- /dev/null +++ b/docs/markdown/snippets/dep_get_variable.md @@ -0,0 +1,8 @@ +## `dep.get_variable(varname)` + +`dep.get_variable()` now has `varname` as first positional argument. +It is used as default value for `cmake`, `pkgconfig`, `configtool` and `internal` +keyword arguments. It is useful in the common case where `pkgconfig` and `internal` +use the same variable name, in which case it's easier to write `dep.get_variable('foo')` +instead of `dep.get_variable(pkgconfig: 'foo', internal: 'foo')`. + |