aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorAndrea G <muffo87@gmail.com>2018-02-11 17:21:51 -0800
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-02-12 19:48:09 +0530
commitbfc18017f118db376d7430a06888f2dbc006a436 (patch)
tree2f35228cc68eecb19134c15fde0f27efe038c3f7 /docs/markdown
parent1b7b7fedb91f52b6ff35db461f6412a4ad5f7c7f (diff)
downloadmeson-bfc18017f118db376d7430a06888f2dbc006a436.zip
meson-bfc18017f118db376d7430a06888f2dbc006a436.tar.gz
meson-bfc18017f118db376d7430a06888f2dbc006a436.tar.bz2
Add missing code block
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Dependencies.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/markdown/Dependencies.md b/docs/markdown/Dependencies.md
index 189db72..6653cc1 100644
--- a/docs/markdown/Dependencies.md
+++ b/docs/markdown/Dependencies.md
@@ -89,12 +89,16 @@ to build dependencies manually when they are not.
To make this work, the dependency must have Meson build definitions
and it must declare its own dependency like this:
+```meson
foo_dep = declare_dependency(...)
+```
Then any project that wants to use it can write out the following
declaration in their main `meson.build` file.
+```meson
foo_dep = dependency('foo', fallback : ['foo', 'foo_dep'])
+```
What this declaration means is that first Meson tries to look up the
dependency from the system (such as by using pkg-config). If it is not