mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
c3348d86f2
commit
09d61032ca
11
wscript
11
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',
|
||||
|
|
Loading…
Reference in New Issue