aboutsummaryrefslogtreecommitdiff
path: root/test cases/linuxlike
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-22 07:36:57 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-12-23 19:07:45 +0200
commita97291dc6d57b903312c056ab022c09cabde13b6 (patch)
tree4fc4a6e01cd5cc2d79deaf79a4f73c4fbf7162ac /test cases/linuxlike
parenta3c02262f9051f9c830a765e744de9f520268aad (diff)
downloadmeson-a97291dc6d57b903312c056ab022c09cabde13b6.zip
meson-a97291dc6d57b903312c056ab022c09cabde13b6.tar.gz
meson-a97291dc6d57b903312c056ab022c09cabde13b6.tar.bz2
Add get_version() method to all dependencies
We unconditionally check the version of all dependencies, so without this regen will fail if you use that dependency.
Diffstat (limited to 'test cases/linuxlike')
-rw-r--r--test cases/linuxlike/5 dependency versions/meson.build7
1 files changed, 7 insertions, 0 deletions
diff --git a/test cases/linuxlike/5 dependency versions/meson.build b/test cases/linuxlike/5 dependency versions/meson.build
index 7f29564..20b3df5 100644
--- a/test cases/linuxlike/5 dependency versions/meson.build
+++ b/test cases/linuxlike/5 dependency versions/meson.build
@@ -47,3 +47,10 @@ assert(somelibfail.found() == false, 'somelibfail found via wrong fallback')
fakezlib_dep = dependency('zlib',
fallback : ['somelib', 'fakezlib_dep'])
assert(fakezlib_dep.type_name() == 'internal', 'fakezlib_dep should be of type "internal", not ' + fakezlib_dep.type_name())
+
+foreach d : ['sdl2', 'gnustep', 'wx', 'gl', 'python3', 'boost', 'gtest', 'gmock']
+ dep = dependency(d, required : false)
+ if dep.found()
+ dep.version()
+ endif
+endforeach