aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2020-01-07 11:43:31 -0800
committerDylan Baker <dylan@pnwbakers.com>2020-01-09 11:02:17 -0800
commit202c89d0b665a536a738c59dcde1f374047a346e (patch)
tree80272f741d850048230f86253ddd37621d0fc10b /docs/markdown/Reference-manual.md
parentcd895be99a7917e8c052ec7bb6088704c87783ae (diff)
downloadmeson-202c89d0b665a536a738c59dcde1f374047a346e.zip
meson-202c89d0b665a536a738c59dcde1f374047a346e.tar.gz
meson-202c89d0b665a536a738c59dcde1f374047a346e.tar.bz2
docs: Add documentation for variables keyword
In declare_dependency() and dependency.get_variables().
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index d8a8d11..c73e5a5 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -413,6 +413,9 @@ keyword arguments.
- `sources`, sources to add to targets (or generated header files
that should be built before sources including them are built)
- `version`, the version of this dependency, such as `1.2.3`
+ - `variables`, a dictionary of arbitrary strings, this is meant to be used
+ in subprojects where special variables would be provided via cmake or
+ pkg-config. Since 0.54.0
### dependency()
@@ -2364,14 +2367,16 @@ an external dependency with the following methods:
- 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 replaces the
+ internal: str, default_value : str, pkgconfig_define : [str, str])`
+ *(Added in 0.51.0)* A generic variable getter method, which replaces 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.
+ *New in 0.54.0, the `internal` keyword*
+
### `disabler` object
A disabler object is an object that behaves in much the same way as