summaryrefslogtreecommitdiff
path: root/test cases/linuxlike
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-10-15 15:21:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-10-19 22:36:34 +0300
commite9089101876e4a6ce9192199f9193720ef6bb816 (patch)
tree8466fad18b93b910894609ca8495f4c30f083fda /test cases/linuxlike
parent44690763b0d0ba7af132dbbf4212ab4c63ad8d46 (diff)
downloadmeson-e9089101876e4a6ce9192199f9193720ef6bb816.tar.gz
Can query pkg-config variables from the system. Closes #726.
Diffstat (limited to 'test cases/linuxlike')
-rw-r--r--test cases/linuxlike/1 pkg-config/meson.build4
1 files changed, 4 insertions, 0 deletions
diff --git a/test cases/linuxlike/1 pkg-config/meson.build b/test cases/linuxlike/1 pkg-config/meson.build
index a18acc5ce..13361a7f3 100644
--- a/test cases/linuxlike/1 pkg-config/meson.build
+++ b/test cases/linuxlike/1 pkg-config/meson.build
@@ -9,6 +9,10 @@ assert(dep.version().version_compare('>=1.2.8'), 'Pkg-config version numbers exp
test('zlibtest', exe)
+zprefix = dep.get_pkgconfig_variable('prefix') # Always set but we can't be sure what the value is.
+# pkg-config returns empty string for not defined variables
+assert(dep.get_pkgconfig_variable('nonexisting') == '', 'Value of unknown variable is not empty.')
+
# Test that dependencies of dependencies work.
dep2 = declare_dependency(dependencies : dep)
exe2 = executable('zlibprog2', 'prog.c', dependencies : dep2)