aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Reference-manual.md
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2021-08-04 11:30:27 -0400
committerXavier Claessens <xclaesse@gmail.com>2021-08-23 10:52:18 -0400
commite646130ef1a703a3624cff4ca11f926703a6fcf4 (patch)
treeafc6527bdd1e01de853fa4ecdab66ee2a8baf75b /docs/markdown/Reference-manual.md
parent0063eb251e836e777b427cbe59b43ab937ac1924 (diff)
downloadmeson-e646130ef1a703a3624cff4ca11f926703a6fcf4.zip
meson-e646130ef1a703a3624cff4ca11f926703a6fcf4.tar.gz
meson-e646130ef1a703a3624cff4ca11f926703a6fcf4.tar.bz2
interpreter: Fix dependency(..., static: true) fallback
It should build the fallback subprject with default_library=static and override the dependency for both static=True and static kwarg not given. Fixes: #8050.
Diffstat (limited to 'docs/markdown/Reference-manual.md')
-rw-r--r--docs/markdown/Reference-manual.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md
index fd156f9..8ef36de 100644
--- a/docs/markdown/Reference-manual.md
+++ b/docs/markdown/Reference-manual.md
@@ -568,6 +568,8 @@ This function supports the following keyword arguments:
- `static`: tells the dependency provider to try to get static
libraries instead of dynamic ones (note that this is not supported
by all dependency backends)
+ *Since 0.60.0* it also sets `default_library` option accordingly on the fallback
+ subproject if it was not set explicitly in `default_options` keyword argument.
- `version` *(since 0.37.0)*: specifies the required version, a string containing a
comparison operator followed by the version string, examples include
`>1.0.0`, `<=2.3.5` or `3.1.4` for exact matching.
@@ -2151,6 +2153,9 @@ the following methods.
`native` keyword arguments. Doing this in a subproject allows the parent
project to retrieve the dependency without having to know the dependency
variable name: `dependency(name, fallback : subproject_name)`.
+ *Since 0.60.0* `static` boolean keyword argument can be specified to override
+ static and/or shared dependencies separately. If not specified it is assumed
+ `dep_object` follows `default_library` option value.
- `project_version()`: returns the version string specified in
`project` function call.