aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/unit/27 pkgconfig usage/dependency/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/unit/27 pkgconfig usage/dependency/meson.build')
-rw-r--r--meson/test cases/unit/27 pkgconfig usage/dependency/meson.build24
1 files changed, 24 insertions, 0 deletions
diff --git a/meson/test cases/unit/27 pkgconfig usage/dependency/meson.build b/meson/test cases/unit/27 pkgconfig usage/dependency/meson.build
new file mode 100644
index 000000000..89fae8e00
--- /dev/null
+++ b/meson/test cases/unit/27 pkgconfig usage/dependency/meson.build
@@ -0,0 +1,24 @@
+project('pkgconfig dep', 'c',
+ version : '1.0.0')
+
+# This is not used in the code, only to check that it does not
+# leak out to --libs.
+glib_dep = dependency('glib-2.0')
+
+pkgconfig = import('pkgconfig')
+
+intlib = static_library('libpkgdep-int', 'privatelib.c')
+intdep = declare_dependency(link_with : intlib)
+
+lib = shared_library('pkgdep', 'pkgdep.c',
+ dependencies : [glib_dep, intdep],
+ install : true)
+
+install_headers('pkgdep.h')
+
+pkgconfig.generate(
+ filebase : 'libpkgdep',
+ name : 'Libpkgdep',
+ description : 'Sample pkgconfig dependency library',
+ version : meson.project_version(),
+ libraries : lib)