diff options
author | Jan Ekström <jeebjp@gmail.com> | 2016-02-08 23:06:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-10 21:29:42 +0100 |
commit | 4b97869e5f8159bde598cbfc31f70ea3001d08df (patch) | |
tree | e722ab30cd271708ca2aad83adf379ba63607e16 /wscript | |
parent | ff0112e08df32e88549d142371d49a2a8ac8a798 (diff) | |
download | mpv-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-- | wscript | 21 |
1 files changed, 18 insertions, 3 deletions
@@ -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', |