summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorJan Ekström <jeebjp@gmail.com>2016-02-07 14:27:46 +0200
committerwm4 <wm4@nowhere>2016-02-10 21:29:36 +0100
commitff0112e08df32e88549d142371d49a2a8ac8a798 (patch)
treed6499c8fb960025f898fca81d282c1842fa78135 /wscript
parenta75f40e0d73d8d3686477aedbb51462c72d693fd (diff)
downloadmpv-ff0112e08df32e88549d142371d49a2a8ac8a798.tar.bz2
mpv-ff0112e08df32e88549d142371d49a2a8ac8a798.tar.xz
Initial Android support
* Adds an 'android' feature, which is automatically detected. * Android has a broken strnlen, so a wrapper is added from FreeBSD.
Diffstat (limited to 'wscript')
-rw-r--r--wscript4
1 files changed, 4 insertions, 0 deletions
diff --git a/wscript b/wscript
index a120cb0ceb..a8f649a5fd 100644
--- a/wscript
+++ b/wscript
@@ -741,6 +741,10 @@ video_output_features = [
'deps': [ 'win32' ],
'func': check_cc(header_name='d3d9.h'),
}, {
+ 'name': '--android',
+ 'desc': 'Android support',
+ 'func': check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
+ }, {
# We need MMAL/bcm_host/dispmanx APIs. Also, most RPI distros require
# every project to hardcode the paths to the include directories. Also,
# these headers are so broken that they spam tons of warnings by merely