diff options
Diffstat (limited to 'meson/test cases/unit/38 pkgconfig format')
-rw-r--r-- | meson/test cases/unit/38 pkgconfig format/meson.build | 18 | ||||
-rw-r--r-- | meson/test cases/unit/38 pkgconfig format/somelib.c | 7 | ||||
-rw-r--r-- | meson/test cases/unit/38 pkgconfig format/someret.c | 3 |
3 files changed, 28 insertions, 0 deletions
diff --git a/meson/test cases/unit/38 pkgconfig format/meson.build b/meson/test cases/unit/38 pkgconfig format/meson.build new file mode 100644 index 000000000..ea00f5df4 --- /dev/null +++ b/meson/test cases/unit/38 pkgconfig format/meson.build @@ -0,0 +1,18 @@ +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') + +s = static_library('returner', 'someret.c') +l = library('something', 'somelib.c', link_whole: s) + +pkgg.generate(libraries: l, + version: '1.0', + name: 'libsomething', + description: 'A library that does something', + requires: 'gobject-2.0 >= 2.0, gio-2.0 >= 2.0') diff --git a/meson/test cases/unit/38 pkgconfig format/somelib.c b/meson/test cases/unit/38 pkgconfig format/somelib.c new file mode 100644 index 000000000..0558024b3 --- /dev/null +++ b/meson/test cases/unit/38 pkgconfig format/somelib.c @@ -0,0 +1,7 @@ +#include<stdio.h> + +int get_returnvalue (void); + +int some_func() { + return get_returnvalue(); +} diff --git a/meson/test cases/unit/38 pkgconfig format/someret.c b/meson/test cases/unit/38 pkgconfig format/someret.c new file mode 100644 index 000000000..69f429928 --- /dev/null +++ b/meson/test cases/unit/38 pkgconfig format/someret.c @@ -0,0 +1,3 @@ +int get_returnvalue (void) { + return 0; +} |