diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-04-29 21:43:24 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2018-05-02 11:46:47 +0000 |
commit | 2b5766980b960d0de6b142fe4d266be88f751b77 (patch) | |
tree | 2dcb6e79e55412de5dc8c2f1f25b10df297569e6 /test cases | |
parent | 554266d6f26d6b19cf29f7b655c214a073c8882e (diff) | |
download | meson-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.build | 17 | ||||
-rw-r--r-- | test cases/unit/31 pkgconfig format/somelib.c | 5 |
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; +} |