diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2019-05-08 16:09:06 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-05-20 10:41:11 -0700 |
commit | ffe2a678d59b2d4184cadd5e4a8f31e8e6108968 (patch) | |
tree | 308d412c7e698fcc41b0b9626cb39b43e7064011 /docs/markdown/Reference-manual.md | |
parent | 53c8852f47aa5e8ae9a1ac0c0d851b60dab1ea9e (diff) | |
download | meson-ffe2a678d59b2d4184cadd5e4a8f31e8e6108968.zip meson-ffe2a678d59b2d4184cadd5e4a8f31e8e6108968.tar.gz meson-ffe2a678d59b2d4184cadd5e4a8f31e8e6108968.tar.bz2 |
docs: Add docs for Dependency.get_variable
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r-- | docs/markdown/Reference-manual.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 01fa3c3..29da7c6 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -2185,6 +2185,14 @@ an external dependency with the following methods: - includes: any include_directories - sources: any compiled or static sources the dependency has + - `get_variable(cmake : str, pkgconfig : str, configtool : str, + default_value : str, pkgconfig_define : [str, str]) *(Added in 0.51.0)* A + generic variable getter method, which repalces the get_*type*_variable + methods. This allows one to get the variable from a dependency without + knowing specifically how that dependency was found. If default_value is set and + the value cannot be gotten from the object then default_value is returned, + if it is not set then an error is raised. + ### `disabler` object A disabler object is an object that behaves in much the same way as |