diff options
Diffstat (limited to 'meson/test cases/unit/32 pkgconfig use libraries')
5 files changed, 34 insertions, 0 deletions
diff --git a/meson/test cases/unit/32 pkgconfig use libraries/app/app.c b/meson/test cases/unit/32 pkgconfig use libraries/app/app.c new file mode 100644 index 000000000..7b8d8fa13 --- /dev/null +++ b/meson/test cases/unit/32 pkgconfig use libraries/app/app.c @@ -0,0 +1,6 @@ +void libb_func(); + +int main(void) { + libb_func(); + return 0; +} diff --git a/meson/test cases/unit/32 pkgconfig use libraries/app/meson.build b/meson/test cases/unit/32 pkgconfig use libraries/app/meson.build new file mode 100644 index 000000000..3d85a32f4 --- /dev/null +++ b/meson/test cases/unit/32 pkgconfig use libraries/app/meson.build @@ -0,0 +1,5 @@ +project('app', ['c']) + +b = dependency('test-b') + +executable('app', 'app.c', dependencies : [b]) diff --git a/meson/test cases/unit/32 pkgconfig use libraries/lib/liba.c b/meson/test cases/unit/32 pkgconfig use libraries/lib/liba.c new file mode 100644 index 000000000..e98906b9c --- /dev/null +++ b/meson/test cases/unit/32 pkgconfig use libraries/lib/liba.c @@ -0,0 +1,2 @@ +void liba_func() { +} diff --git a/meson/test cases/unit/32 pkgconfig use libraries/lib/libb.c b/meson/test cases/unit/32 pkgconfig use libraries/lib/libb.c new file mode 100644 index 000000000..3160e5f52 --- /dev/null +++ b/meson/test cases/unit/32 pkgconfig use libraries/lib/libb.c @@ -0,0 +1,5 @@ +void liba_func(); + +void libb_func() { + liba_func(); +} diff --git a/meson/test cases/unit/32 pkgconfig use libraries/lib/meson.build b/meson/test cases/unit/32 pkgconfig use libraries/lib/meson.build new file mode 100644 index 000000000..748adf47a --- /dev/null +++ b/meson/test cases/unit/32 pkgconfig use libraries/lib/meson.build @@ -0,0 +1,16 @@ +project('lib', ['c']) + +a = library('test-a', 'liba.c', install: true) + +b = library('test-b', 'libb.c', link_with: a, install: true) + +import('pkgconfig').generate( + version: '0.0', + description: 'test library', + filebase: 'test-b', + name: 'test library', + libraries: [b], + subdirs: ['.'] +) + + |