aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-05-21 21:57:05 +0300
committerGitHub <noreply@github.com>2019-05-21 21:57:05 +0300
commite9bd7d49bdc8c630cca3bf4cc02c437841b6aaf6 (patch)
tree3a7c2127d8ca71027248589d5d326c3bb23ace35 /docs/markdown/Reference-manual.md
parent60f34a1f51d455598143c1c55fd49a5eb1bb1fd6 (diff)
parent27b6c62ffdf51fed9a55ecfdd4ed47ac2ea79c1e (diff)
downloadmeson-e9bd7d49bdc8c630cca3bf4cc02c437841b6aaf6.zip
meson-e9bd7d49bdc8c630cca3bf4cc02c437841b6aaf6.tar.gz
meson-e9bd7d49bdc8c630cca3bf4cc02c437841b6aaf6.tar.bz2
Merge pull request #5372 from dcbaker/get_variable
Dependency.get_variable method
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index 2fc3d6a..477790b 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -2188,6 +2188,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