summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
Diffstat (limited to 'wscript')
-rw-r--r--wscript22
1 files changed, 21 insertions, 1 deletions
diff --git a/wscript b/wscript
index feb20851a3..2fb995041f 100644
--- a/wscript
+++ b/wscript
@@ -721,9 +721,29 @@ video_output_features = [
'deps': [ 'win32-desktop' ],
'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
+ # including them (compensate with -isystem and -fgnu89-inline).
'name': '--rpi',
'desc': 'Raspberry Pi support',
- 'func': check_rpi,
+ 'func': compose_checks(
+ check_cc(cflags="-isystem/opt/vc/include/ "+
+ "-isystem/opt/vc/include/interface/vcos/pthreads " +
+ "-isystem/opt/vc/include/interface/vmcs_host/linux " +
+ "-fgnu89-inline",
+ linkflags="-L/opt/vc/lib",
+ header_name="bcm_host.h",
+ lib=['mmal_core', 'mmal_util', 'mmal_vc_client', 'bcm_host']),
+ # We still need all OpenGL symbols, because the vo_opengl code is
+ # generic and supports anything from GLES2/OpenGL 2.1 to OpenGL 4 core.
+ check_cc(lib="EGL"),
+ check_cc(lib="GLESv2"),
+ ),
} , {
'name': '--ios-gl',
'desc': 'iOS OpenGL ES hardware decoding interop support',