Commit 716cd870 authored by Eric Petit's avatar Eric Petit

Build the opengl module on OS X (gl provider not done yet)

parent 0e949ba4
...@@ -2564,12 +2564,13 @@ if test "${enable_xvideo}" != "no" && ...@@ -2564,12 +2564,13 @@ if test "${enable_xvideo}" != "no" &&
fi fi
dnl dnl
dnl GLX module dnl OpenGL module
dnl (enabled by default except on win32) dnl (enabled by default except on beos)
dnl dnl
AC_ARG_ENABLE(opengl, AC_ARG_ENABLE(opengl,
[ --enable-opengl OpenGL support (default enabled)]) [ --enable-opengl OpenGL support (default enabled)])
if test "${enable_opengl}" != "no" && test "${SYS}" != "beos"; then if test "${enable_opengl}" != "no" && test "${SYS}" != "beos"; then
if test "${SYS}" != "darwin"; then
AC_CHECK_HEADERS(GL/gl.h, [ AC_CHECK_HEADERS(GL/gl.h, [
VLC_ADD_PLUGINS([opengl]) VLC_ADD_PLUGINS([opengl])
if test "${SYS}" != "mingw32"; then if test "${SYS}" != "mingw32"; then
...@@ -2578,6 +2579,11 @@ if test "${enable_opengl}" != "no" && test "${SYS}" != "beos"; then ...@@ -2578,6 +2579,11 @@ if test "${enable_opengl}" != "no" && test "${SYS}" != "beos"; then
VLC_ADD_LDFLAGS([opengl],[-lopengl32]) VLC_ADD_LDFLAGS([opengl],[-lopengl32])
fi fi
]) ])
else
dnl OS X special case (no GL/gl.h but OpenGL/gl.h)
VLC_ADD_PLUGINS([opengl])
VLC_ADD_LDFLAGS([opengl],[-framework OpenGL])
fi
fi fi
dnl dnl
......
...@@ -32,7 +32,12 @@ ...@@ -32,7 +32,12 @@
#include <vlc/vlc.h> #include <vlc/vlc.h>
#include <vlc/vout.h> #include <vlc/vout.h>
#ifndef SYS_DARWIN
#include <GL/gl.h> #include <GL/gl.h>
#else
/* Mac OS X < 10.3 does not have GL/gl.h */
#include <OpenGL/gl.h>
#endif
/* RV16 */ /* RV16 */
#ifndef GL_UNSIGNED_SHORT_5_6_5 #ifndef GL_UNSIGNED_SHORT_5_6_5
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment