summaryrefslogtreecommitdiffstats
path: root/test cases/unit/32 pkgconfig use libraries
diff options
context:
space:
mode:
Diffstat (limited to 'test cases/unit/32 pkgconfig use libraries')
-rw-r--r--test cases/unit/32 pkgconfig use libraries/app/app.c6
-rw-r--r--test cases/unit/32 pkgconfig use libraries/app/meson.build5
-rw-r--r--test cases/unit/32 pkgconfig use libraries/lib/liba.c2
-rw-r--r--test cases/unit/32 pkgconfig use libraries/lib/libb.c5
-rw-r--r--test cases/unit/32 pkgconfig use libraries/lib/meson.build14
5 files changed, 32 insertions, 0 deletions
diff --git a/test cases/unit/32 pkgconfig use libraries/app/app.c b/test cases/unit/32 pkgconfig use libraries/app/app.c
new file mode 100644
index 0000000..7b8d8fa
--- /dev/null
+++ b/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/test cases/unit/32 pkgconfig use libraries/app/meson.build b/test cases/unit/32 pkgconfig use libraries/app/meson.build
new file mode 100644
index 0000000..3d85a32
--- /dev/null
+++ b/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/test cases/unit/32 pkgconfig use libraries/lib/liba.c b/test cases/unit/32 pkgconfig use libraries/lib/liba.c
new file mode 100644
index 0000000..e98906b
--- /dev/null
+++ b/test cases/unit/32 pkgconfig use libraries/lib/liba.c
@@ -0,0 +1,2 @@
+void liba_func() {
+}
diff --git a/test cases/unit/32 pkgconfig use libraries/lib/libb.c b/test cases/unit/32 pkgconfig use libraries/lib/libb.c
new file mode 100644
index 0000000..3160e5f
--- /dev/null
+++ b/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/test cases/unit/32 pkgconfig use libraries/lib/meson.build b/test cases/unit/32 pkgconfig use libraries/lib/meson.build
new file mode 100644
index 0000000..e9918ce
--- /dev/null
+++ b/test cases/unit/32 pkgconfig use libraries/lib/meson.build
@@ -0,0 +1,14 @@
+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: ['.']
+)