summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript21
1 files changed, 18 insertions, 3 deletions
diff --git a/wscript b/wscript
index a8f649a5fd..0e39e2ade6 100644
--- a/wscript
+++ b/wscript
@@ -767,14 +767,29 @@ video_output_features = [
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' ],
+ 'name': '--desktop-gl',
+ 'desc': 'Desktop OpengGL support',
'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': '--android-gl',
+ 'desc': 'Android OpenGL ES support',
+ 'deps': ['android'],
+ 'func': check_statement('GLES3/gl3.h', '(void)GL_RGB32F'), # arbitrary OpenGL ES 3.0 symbol
+ } , {
+ 'name': '--any-gl',
+ 'desc': 'Any OpenGL (ES) support',
+ 'deps_any': ['desktop-gl', 'android-gl'],
+ 'func': check_true
+ } , {
+ 'name': '--plain-gl',
+ 'desc': 'OpenGL without platform-specific code (e.g. for libmpv)',
+ 'deps': ['any-gl'],
+ 'deps_any': [ 'libmpv-shared', 'libmpv-static' ],
+ 'func': check_true,
+ } , {
'name': '--gl',
'desc': 'OpenGL video outputs',
'deps_any': [ 'gl-cocoa', 'gl-x11', 'egl-x11', 'egl-drm',