summaryrefslogtreecommitdiff
path: root/pkgconfig
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2019-04-08 21:35:22 +1000
committerMatthew Waters <matthew@centricular.com>2019-06-04 09:03:44 +0000
commit25dd3b32e56f2acf8744baed6938fe701451ac8f (patch)
treef828e7d7ed2aa5af46d96875df5312e9e16aa10e /pkgconfig
parent8def3b3743b5cd1f23da4a1e9abf27756d55fb7b (diff)
downloadgstreamer-plugins-bad-25dd3b32e56f2acf8744baed6938fe701451ac8f.tar.gz
vulkan: make a gstvulkan library out of the existing API
Diffstat (limited to 'pkgconfig')
-rw-r--r--pkgconfig/gstreamer-vulkan-uninstalled.pc.in12
-rw-r--r--pkgconfig/gstreamer-vulkan.pc.in12
-rw-r--r--pkgconfig/meson.build5
3 files changed, 29 insertions, 0 deletions
diff --git a/pkgconfig/gstreamer-vulkan-uninstalled.pc.in b/pkgconfig/gstreamer-vulkan-uninstalled.pc.in
new file mode 100644
index 000000000..b9a77044f
--- /dev/null
+++ b/pkgconfig/gstreamer-vulkan-uninstalled.pc.in
@@ -0,0 +1,12 @@
+prefix=
+exec_prefix=
+libdir=@vulkanlibdir@
+includedir=@abs_top_srcdir@/gst-libs
+
+Name: GStreamer Vulkan, Uninstalled
+Description: GStreamer Vulkan support, uninstalled
+Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-video-@GST_API_VERSION@
+Version: @VERSION@
+Libs: -L${libdir} -lgstvulkan-@GST_API_VERSION@
+Cflags: -I@abs_top_srcdir@/gst-libs -I@abs_top_builddir@/gst-libs
+
diff --git a/pkgconfig/gstreamer-vulkan.pc.in b/pkgconfig/gstreamer-vulkan.pc.in
new file mode 100644
index 000000000..00eca529f
--- /dev/null
+++ b/pkgconfig/gstreamer-vulkan.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@/gstreamer-@GST_API_VERSION@
+
+Name: GStreamer Vulkan
+Description: GStreamer Vulkan support
+Requires: gstreamer-@GST_API_VERSION@ gstreamer-base-@GST_API_VERSION@ gstreamer-video-@GST_API_VERSION@
+Version: @VERSION@
+Libs: -L${libdir} -lgstvulkan-@GST_API_VERSION@
+Cflags: -I${includedir}
+
diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build
index 7ddfafbbf..5bebe2f97 100644
--- a/pkgconfig/meson.build
+++ b/pkgconfig/meson.build
@@ -37,6 +37,11 @@ pkg_libs = [
# pkg_libs += 'wayland'
#endif
+if gstvulkan_dep.found()
+ pkgconf.set('vulkanlibdir', join_paths(meson.build_root(), gstvulkan.outdir()))
+ pkg_libs += 'vulkan'
+endif
+
foreach p : pkg_libs
infile = 'gstreamer-@0@.pc.in'.format(p)
outfile = 'gstreamer-@0@-@1@.pc'.format(p, api_version)