From 1b7883a3e57a39edfd39732efde5cd02417e3ebd Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 18 Aug 2015 23:57:00 +0200 Subject: [PATCH] build: workaround for broken waf crap Even though the rpi check fails, it'll define "HAVE_RPI 1" in config.h. Why? Who knows... --- wscript | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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',