diff options
author | Matthew Waters <matthew@centricular.com> | 2016-11-17 17:15:55 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2017-01-10 13:57:37 +1100 |
commit | 6d17a4133ba02d290b040012c28b42b9b06d09ce (patch) | |
tree | 67d46adcf8068918cc789fceb159b767915f3256 /pkgconfig | |
parent | f3d2be1e4f63b45e584b9c5b8b1d12717d980058 (diff) |
gl/pkg-config: add the configured platform/api/winsys
Allows users to query this from pkg-config instead of requiring them to
compile mini programs checking defines in gstglconfig.h
Diffstat (limited to 'pkgconfig')
-rw-r--r-- | pkgconfig/gstreamer-gl-uninstalled.pc.in | 3 | ||||
-rw-r--r-- | pkgconfig/gstreamer-gl.pc.in | 3 | ||||
-rw-r--r-- | pkgconfig/meson.build | 3 |
3 files changed, 9 insertions, 0 deletions
diff --git a/pkgconfig/gstreamer-gl-uninstalled.pc.in b/pkgconfig/gstreamer-gl-uninstalled.pc.in index a21ac4621..b4ae6d306 100644 --- a/pkgconfig/gstreamer-gl-uninstalled.pc.in +++ b/pkgconfig/gstreamer-gl-uninstalled.pc.in @@ -4,6 +4,9 @@ libdir=@gllibdir@ includedir=@abs_top_builddir@/gst-libs girdir=@abs_top_builddir@/gst-libs/gst/base typelibdir=@abs_top_builddir@/gst-libs/gst/base +gl_platforms=@GL_PLATFORMS@ +gl_winsys=@GL_WINDOWS@ +gl_apis=@GL_APIS@ Name: GStreamer OpenGL Plugins Libraries, Uninstalled Description: Streaming media framework, OpenGL plugins libraries, uninstalled diff --git a/pkgconfig/gstreamer-gl.pc.in b/pkgconfig/gstreamer-gl.pc.in index a3a9dc6cc..8e7a3039d 100644 --- a/pkgconfig/gstreamer-gl.pc.in +++ b/pkgconfig/gstreamer-gl.pc.in @@ -3,6 +3,9 @@ exec_prefix=@exec_prefix@ libdir=@libdir@ includedir=@includedir@/gstreamer-@GST_API_VERSION@ pluginsdir=@libdir@/gstreamer-@GST_API_VERSION@ +gl_platforms=@GL_PLATFORMS@ +gl_winsys=@GL_WINDOWS@ +gl_apis=@GL_APIS@ Name: GStreamer OpenGL Plugins Libraries Description: Streaming media framework, OpenGL plugins libraries diff --git a/pkgconfig/meson.build b/pkgconfig/meson.build index b6715cdf0..b2deeac37 100644 --- a/pkgconfig/meson.build +++ b/pkgconfig/meson.build @@ -37,6 +37,9 @@ pkg_libs = [ if build_gstgl pkgconf.set('gllibdir', join_paths(meson.build_root(), gstgl.outdir())) pkg_libs += 'gl' + pkgconf.set('GL_APIS', ' '.join(enabled_gl_apis)) + pkgconf.set('GL_WINDOWS', ' '.join(enabled_gl_winsys)) + pkgconf.set('GL_PLATFORMS', ' '.join(enabled_gl_platforms)) endif if use_wayland |