summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2017-10-05 11:58:37 -0700
committerwm4 <wm4@nowhere>2017-10-09 18:36:54 +0200
commit8fc21fd0d5aa733eb4388c68d22c8f1748f16e33 (patch)
treeed8cd273727edd72f3cac74bba764409c08d551c /wscript
parente80a2a572dd7a426fc11b3776985b99460214d75 (diff)
downloadmpv-8fc21fd0d5aa733eb4388c68d22c8f1748f16e33.tar.bz2
mpv-8fc21fd0d5aa733eb4388c68d22c8f1748f16e33.tar.xz
vo_gpu: add android opengl backend
At the moment, rendering on Android requires ``--vo=opengl-cb`` and a lot of java<->c++ bridging code to receive the receive and react to the render callback in java. Performance also suffers with opengl-cb, due to the overhead of context switching in JNI. With this patch, Android can render using ``--vo=gpu --gpu-context=android`` (after setting ``--wid`` to point to an android.view.Surface on-screen).
Diffstat (limited to 'wscript')
-rw-r--r--wscript7
1 files changed, 5 insertions, 2 deletions
diff --git a/wscript b/wscript
index 107db6ca50..0a718c961a 100644
--- a/wscript
+++ b/wscript
@@ -153,7 +153,10 @@ main_dependencies = [
}, {
'name': '--android',
'desc': 'Android environment',
- 'func': check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
+ 'func': compose_checks(
+ check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
+ check_cc(lib="android"),
+ )
}, {
'name': 'posix-or-mingw',
'desc': 'development environment',
@@ -817,7 +820,7 @@ video_output_features = [
'name': 'egl-helpers',
'desc': 'EGL helper functions',
'deps': 'egl-x11 || mali-fbdev || rpi || gl-wayland || egl-drm || ' +
- 'egl-angle-win32',
+ 'egl-angle-win32 || android',
'func': check_true
}
]