mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-05 17:09:48 +00:00
gl/win32: allow not building the gl plugins
Fixes build on windows if <GL/wglext.h> headers are not present. https://bugzilla.gnome.org/show_bug.cgi?id=727125
This commit is contained in:
parent
7dd3b2fff7
commit
c8ff215b02
1 changed files with 17 additions and 6 deletions
23
configure.ac
23
configure.ac
|
@ -717,8 +717,11 @@ case $host in
|
||||||
LIBS="$LIBS -lgdi32"
|
LIBS="$LIBS -lgdi32"
|
||||||
AG_GST_CHECK_LIBHEADER(GL, opengl32, glTexImage2D,, GL/gl.h)
|
AG_GST_CHECK_LIBHEADER(GL, opengl32, glTexImage2D,, GL/gl.h)
|
||||||
AG_GST_CHECK_LIBHEADER(GLU, glu32, gluSphere,, GL/glu.h)
|
AG_GST_CHECK_LIBHEADER(GLU, glu32, gluSphere,, GL/glu.h)
|
||||||
HAVE_GL=yes
|
AC_CHECK_HEADER(GL/wglext.h, HAVE_WGLEXT="yes", HAVE_WGLEXT="no")
|
||||||
HAVE_GLU=yes
|
if test "x$HAVE_WGLEXT" = "xyes"; then
|
||||||
|
HAVE_GL=yes
|
||||||
|
HAVE_GLU=yes
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h)
|
AG_GST_CHECK_LIBHEADER(GL, GL, glTexImage2D,, GL/gl.h)
|
||||||
|
@ -1002,10 +1005,18 @@ case $host in
|
||||||
AC_MSG_ERROR([OpenGL|ES 2.0 is not supported on your platform yet])
|
AC_MSG_ERROR([OpenGL|ES 2.0 is not supported on your platform yet])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
GL_LIBS="$GL_LIBS -lgdi32 -lopengl32 -lglu32"
|
if test "x$HAVE_GL" = "xyes"; then
|
||||||
HAVE_WINDOW_WIN32=yes
|
if test "$NEED_GL" != "xno"; then
|
||||||
USE_OPENGL=yes
|
if test "x$HAVE_WGL" = "xyes"; then
|
||||||
USE_WGL=yes
|
if test "$NEED_WGL" != "xno"; then
|
||||||
|
GL_LIBS="$GL_LIBS -lgdi32 -lopengl32 -lglu32"
|
||||||
|
HAVE_WINDOW_WIN32=yes
|
||||||
|
USE_OPENGL=yes
|
||||||
|
USE_WGL=yes
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
dnl GNUstep provides the Cocoa API on win32
|
dnl GNUstep provides the Cocoa API on win32
|
||||||
if test "x$HAVE_GNUSTEP_COCOA" = "xyes" ; then
|
if test "x$HAVE_GNUSTEP_COCOA" = "xyes" ; then
|
||||||
|
|
Loading…
Reference in a new issue