0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

build: workaround for broken waf crap

Even though the rpi check fails, it'll define "HAVE_RPI 1" in config.h.
Why? Who knows...
This commit is contained in:
wm4 2015-08-18 23:57:00 +02:00
parent 4427fa9900
commit 1b7883a3e5

View File

@ -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',