mirror of
https://github.com/mpv-player/mpv
synced 2024-12-17 20:34:58 +00: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:
parent
4427fa9900
commit
1b7883a3e5
8
wscript
8
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',
|
||||
|
Loading…
Reference in New Issue
Block a user