aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2020-04-04 17:39:39 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2020-07-01 09:45:33 -0400
commit56c9e95b04b51def7443a514e5021fa7b70fe8c8 (patch)
tree354b79309dc4c57a58eae71eab273b06a18542e3 /docs/markdown/snippets
parent64f36613ef5d54de9d2040da60b225c1ef11140d (diff)
downloadmeson-56c9e95b04b51def7443a514e5021fa7b70fe8c8.zip
meson-56c9e95b04b51def7443a514e5021fa7b70fe8c8.tar.gz
meson-56c9e95b04b51def7443a514e5021fa7b70fe8c8.tar.bz2
Implicit dependency fallback when a subproject wrap or dir exists
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/implicit_fallback.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/markdown/snippets/implicit_fallback.md b/docs/markdown/snippets/implicit_fallback.md
new file mode 100644
index 0000000..87003d0
--- /dev/null
+++ b/docs/markdown/snippets/implicit_fallback.md
@@ -0,0 +1,9 @@
+## Implicit dependency fallback
+
+`dependency('foo')` now automatically fallback if the dependency is not found on
+the system but a subproject wrap file or directory exists with the same name.
+
+That means that simply adding `subprojects/foo.wrap` is enough to add fallback
+to any `dependency('foo')` call. It is however requires that the subproject call
+`meson.override_dependency('foo', foo_dep)` to specify which dependency object
+should be used for `foo`.