summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/dependency_get_variable_method.md
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-06-16 22:03:29 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2019-06-16 22:03:29 +0300
commit5ecab576673d98b01296ef02c8bc9300c5f6e796 (patch)
tree129a6ac8eb27bc09d8a40d31f8e00340763ff251 /docs/markdown/snippets/dependency_get_variable_method.md
parent288ef0e0e7dbf58a91a1a78095aa51f1bb7a7877 (diff)
downloadmeson-5ecab576673d98b01296ef02c8bc9300c5f6e796.tar.gz
Update things for new release.
Diffstat (limited to 'docs/markdown/snippets/dependency_get_variable_method.md')
-rw-r--r--docs/markdown/snippets/dependency_get_variable_method.md17
1 files changed, 0 insertions, 17 deletions
diff --git a/docs/markdown/snippets/dependency_get_variable_method.md b/docs/markdown/snippets/dependency_get_variable_method.md
deleted file mode 100644
index aaeac9c37..000000000
--- a/docs/markdown/snippets/dependency_get_variable_method.md
+++ /dev/null
@@ -1,17 +0,0 @@
-## Dependency objects now have a get_variable method
-
-This is a generic replacement for type specific variable getters such as
-`ConfigToolDependency.get_configtool_variable` and
-`PkgConfigDependency.get_pkgconfig_variable`, and is the only way to query
-such variables from cmake dependencies.
-
-This method allows you to get variables without knowing the kind of
-dependency you have.
-
-```meson
-dep = dependency('could_be_cmake_or_pkgconfig')
-# cmake returns 'YES', pkg-config returns 'ON'
-if ['YES', 'ON'].contains(dep.get_variable(pkg-config : 'var-name', cmake : 'COP_VAR_NAME', default_value : 'NO'))
- error('Cannot build your project when dep is built with var-name support')
-endif
-```