summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-08 20:53:19 +0100
committerwm4 <wm4@nowhere>2016-02-08 20:53:19 +0100
commit09d61032cac27ce12e1b858b531150ac89efe424 (patch)
treee80de0da8776469d791b61f9e57ea9c62ff3724b /wscript
parentc3348d86f21944bad9e582f3c5d6b4cc4e4abfb1 (diff)
downloadmpv-09d61032cac27ce12e1b858b531150ac89efe424.tar.bz2
mpv-09d61032cac27ce12e1b858b531150ac89efe424.tar.xz
build: enable vo_opengl_cb if GL headers are present
To be more specific, enable vo_opengl and vo_opengl_cb, if libmpv is compiled, and the GL headers happen to be in the default search paths. Although platform specific code can be useful for libmpv (for window embedding, and even with vo_opengl_cb for certain forms of hardware decoding), it's not a requirement to use the opengl_cb API. Enabling vo_opengl is not useful here, but the rest of the build system doesn't distinguish vo_opengl and vo_opengl_cb, and I see no reason to.
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 10 insertions, 1 deletions
diff --git a/wscript b/wscript
index c6f287ffa1..a120cb0ceb 100644
--- a/wscript
+++ b/wscript
@@ -762,10 +762,19 @@ video_output_features = [
check_statement('GL/gl.h', '(void)GL_RGB32F'), # arbitrary OpenGL 3.0 symbol
check_statement('GL/gl.h', '(void)GL_LUMINANCE16') # arbitrary OpenGL legacy-only symbol
),
+ }, {
+ 'name': '--plain-gl',
+ 'desc': 'OpenGL without platform-specific code (e.g. for libmpv)',
+ 'deps_any': [ 'libmpv-shared', 'libmpv-static' ],
+ 'func': compose_checks(
+ check_statement('GL/gl.h', '(void)GL_RGB32F'), # arbitrary OpenGL 3.0 symbol
+ check_statement('GL/gl.h', '(void)GL_LUMINANCE16') # arbitrary OpenGL legacy-only symbol
+ ),
} , {
'name': '--gl',
'desc': 'OpenGL video outputs',
- 'deps_any': [ 'gl-cocoa', 'gl-x11', 'egl-x11', 'egl-drm', 'gl-win32', 'gl-wayland', 'rpi' ],
+ 'deps_any': [ 'gl-cocoa', 'gl-x11', 'egl-x11', 'egl-drm',
+ 'gl-win32', 'gl-wayland', 'rpi', 'plain-gl' ],
'func': check_true
}, {
'name': 'egl-helpers',