summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2016-02-08 23:06:51 +0200
committerwm4 <wm4@nowhere>2016-02-10 21:29:42 +0100
commit4b97869e5f8159bde598cbfc31f70ea3001d08df (patch)
treee722ab30cd271708ca2aad83adf379ba63607e16 /wscript
parentff0112e08df32e88549d142371d49a2a8ac8a798 (diff)
downloadmpv-4b97869e5f8159bde598cbfc31f70ea3001d08df.tar.bz2
mpv-4b97869e5f8159bde598cbfc31f70ea3001d08df.tar.xz
Enable building the opengl-cb video renderer on Android
* Add Android-specific OpenGL ES feature and checks * Add missing GL_* symbols for Android (list gathered by Ilya Zhuravlev <whatever@xyz.is>)
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',