aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-04-29 21:43:24 +0300
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-05-02 11:46:47 +0000
commit2b5766980b960d0de6b142fe4d266be88f751b77 (patch)
tree2dcb6e79e55412de5dc8c2f1f25b10df297569e6 /test cases
parent554266d6f26d6b19cf29f7b655c214a073c8882e (diff)
downloadmeson-2b5766980b960d0de6b142fe4d266be88f751b77.zip
meson-2b5766980b960d0de6b142fe4d266be88f751b77.tar.gz
meson-2b5766980b960d0de6b142fe4d266be88f751b77.tar.bz2
Keep separator spaces in pkg-config declarations. Closes #3479.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/unit/31 pkgconfig format/meson.build17
-rw-r--r--test cases/unit/31 pkgconfig format/somelib.c5
2 files changed, 22 insertions, 0 deletions
diff --git a/test cases/unit/31 pkgconfig format/meson.build b/test cases/unit/31 pkgconfig format/meson.build
new file mode 100644
index 0000000..bbd3b12
--- /dev/null
+++ b/test cases/unit/31 pkgconfig format/meson.build
@@ -0,0 +1,17 @@
+project('pkgformat', 'c',
+ version : '1.0')
+
+gio = dependency('gio-2.0', required: false)
+if not gio.found()
+ error('MESON_SKIP_TEST glib not found.')
+endif
+
+pkgg = import('pkgconfig')
+
+l = shared_library('something', 'somelib.c')
+
+pkgg.generate(libraries: l,
+ version: '1.0',
+ name: 'libsomething',
+ description: 'A library that does something',
+ requires: 'gobject-2.0 >= 2.54, gio-2.0 >= 2.54')
diff --git a/test cases/unit/31 pkgconfig format/somelib.c b/test cases/unit/31 pkgconfig format/somelib.c
new file mode 100644
index 0000000..6d876c8
--- /dev/null
+++ b/test cases/unit/31 pkgconfig format/somelib.c
@@ -0,0 +1,5 @@
+#include<stdio.h>
+
+int some_func() {
+ return 0;
+}