diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2020-04-04 23:56:33 -0400 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2020-07-01 09:51:44 -0400 |
commit | 2a7f72885ff0623a0a625efb5ffeca6299fc4cf7 (patch) | |
tree | 9f004fd5f97c3a9778d04b5c5685f668e5b55544 /docs/markdown/snippets | |
parent | 56c9e95b04b51def7443a514e5021fa7b70fe8c8 (diff) | |
download | meson-2a7f72885ff0623a0a625efb5ffeca6299fc4cf7.zip meson-2a7f72885ff0623a0a625efb5ffeca6299fc4cf7.tar.gz meson-2a7f72885ff0623a0a625efb5ffeca6299fc4cf7.tar.bz2 |
wrap: Add 'provide' section
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/implicit_fallback.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/implicit_fallback.md b/docs/markdown/snippets/implicit_fallback.md index 87003d0..bad1c71 100644 --- a/docs/markdown/snippets/implicit_fallback.md +++ b/docs/markdown/snippets/implicit_fallback.md @@ -7,3 +7,10 @@ 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`. + +## Wrap file `provide` section + +Wrap files can define the dependencies it provides in the `[provide]` section. +When a wrap file provides the dependency `foo` any call do `dependency('foo')` +will automatically fallback to that subproject even if no `fallback` keyword +argument is given. See [Wrap documentation](Wrap-dependency-system-manual.md#provide_section). |