mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-09 13:21:16 +00:00
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
This commit is contained in:
parent
f3d2be1e4f
commit
6d17a4133b
4 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue