diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2018-12-05 07:44:27 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 07:44:27 +0530 |
commit | febd3e8524a2ca63f4728a51c5edd19451d6c5fc (patch) | |
tree | 334230511a160bc8f2e92a05806d0e9ff523d92a | |
parent | 58b838a80bfe1d3307e730c293ce91cb93b332c9 (diff) | |
download | meson-febd3e8524a2ca63f4728a51c5edd19451d6c5fc.zip meson-febd3e8524a2ca63f4728a51c5edd19451d6c5fc.tar.gz meson-febd3e8524a2ca63f4728a51c5edd19451d6c5fc.tar.bz2 |
Document how to declare fallback-only dependencies [skip ci]
-rw-r--r-- | docs/markdown/Reference-manual.md | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index a723b03..5cd24b7 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -420,7 +420,9 @@ If dependency_name is `''`, the dependency is always not found. So with `found()` method returns `false`, and which can be passed like any other dependency to the `dependencies:` keyword argument of a `build_target`. This can be used to implement a dependency which is sometimes not required e.g. in -some branches of a conditional. +some branches of a conditional, or with a `fallback:` kwarg, can be used to +declare an optional dependency that only looks in the specified subproject, +and only if that's allowed by `--wrap-mode`. The returned object also has methods that are documented in the [object methods section](#dependency-object) below. |