summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-18 23:57:00 +0200
committerwm4 <wm4@nowhere>2015-08-18 23:57:00 +0200
commit1b7883a3e57a39edfd39732efde5cd02417e3ebd (patch)
treefe4525e55eb992bfe7fc1f3c0f22f0fcbe791a36
parent4427fa9900a33f21ace5f7642fc5bc65a379c8c5 (diff)
downloadmpv-1b7883a3e57a39edfd39732efde5cd02417e3ebd.tar.bz2
mpv-1b7883a3e57a39edfd39732efde5cd02417e3ebd.tar.xz
build: workaround for broken waf crap
Even though the rpi check fails, it'll define "HAVE_RPI 1" in config.h. Why? Who knows...
-rw-r--r--wscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/wscript b/wscript
index 13b13a2ac5..4234b6dbbb 100644
--- a/wscript
+++ b/wscript
@@ -674,7 +674,7 @@ video_output_features = [
# 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',
+ 'name': '--not-really-rpi',
'desc': 'Raspberry Pi support',
'func': compose_checks(
check_cc(cflags="-isystem/opt/vc/include/ "+
@@ -691,6 +691,12 @@ video_output_features = [
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
),
+ }, {
+ # workaround for buggy compose_checks
+ 'name': 'rpi',
+ 'desc': 'RPI',
+ 'deps': ['not-really-rpi'],
+ 'func': check_true,
} , {
'name': '--gl',
'desc': 'OpenGL video outputs',