summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-11-17 17:15:55 +1100
committerMatthew Waters <matthew@centricular.com>2017-01-10 13:57:37 +1100
commit6d17a4133ba02d290b040012c28b42b9b06d09ce (patch)
tree67d46adcf8068918cc789fceb159b767915f3256
parentf3d2be1e4f63b45e584b9c5b8b1d12717d980058 (diff)
downloadgstreamer-plugins-bad-6d17a4133ba02d290b040012c28b42b9b06d09ce.tar.gz
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
-rw-r--r--configure.ac3
-rw-r--r--pkgconfig/gstreamer-gl-uninstalled.pc.in3
-rw-r--r--pkgconfig/gstreamer-gl.pc.in3
-rw-r--r--pkgconfig/meson.build3
4 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 03a785b9f..c96a896a2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1300,6 +1300,9 @@ if test "x$GL_APIS" = "x" -o "x$GL_PLATFORMS" = "x" -o "x$GL_WINDOWS" = "x"; the
HAVE_WINDOW_EAGL=no
fi
+AC_SUBST(GL_APIS)
+AC_SUBST(GL_PLATFORMS)
+AC_SUBST(GL_WINDOWS)
AC_SUBST(GL_LIBS)
AC_SUBST(GL_CFLAGS)
AC_SUBST(GL_OBJCFLAGS)
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