mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
wscript: detect tvOS and disable posix-spawn usage
cc #5331 Signed-off-by: Aman Gupta <aman@tmm1.net>
This commit is contained in:
parent
03cb8755e1
commit
9dc0a9f0e0
6
wscript
6
wscript
@ -161,6 +161,10 @@ main_dependencies = [
|
||||
'name': '--android',
|
||||
'desc': 'Android environment',
|
||||
'func': check_statement('android/api-level.h', '(void)__ANDROID__'), # arbitrary android-specific header
|
||||
}, {
|
||||
'name': '--tvos',
|
||||
'desc': 'tvOS environment',
|
||||
'func': check_statement('TargetConditionals.h', 'int x = TARGET_OS_TV;'),
|
||||
}, {
|
||||
'name': '--egl-android',
|
||||
'desc': 'Android EGL support',
|
||||
@ -247,7 +251,7 @@ iconv support use --disable-iconv.",
|
||||
'desc': 'spawnp()/kill() POSIX support',
|
||||
'func': check_statement(['spawn.h', 'signal.h'],
|
||||
'posix_spawnp(0,0,0,0,0,0); kill(0,0)'),
|
||||
'deps': '!mingw',
|
||||
'deps': '!mingw && !tvos',
|
||||
}, {
|
||||
'name': 'posix-spawn-android',
|
||||
'desc': 'spawnp()/kill() Android replacement',
|
||||
|
Loading…
Reference in New Issue
Block a user