mirror of https://github.com/mpv-player/mpv
wscript: check tvOS define's value to be nonzero
TARGET_OS_TV seems to always be defined, but set according to the build configuration. This fixes all Apple configurations being mis-identified as tvOS.
This commit is contained in:
parent
643417dd17
commit
95ca78b63e
5
wscript
5
wscript
|
@ -158,7 +158,10 @@ main_dependencies = [
|
||||||
}, {
|
}, {
|
||||||
'name': '--tvos',
|
'name': '--tvos',
|
||||||
'desc': 'tvOS environment',
|
'desc': 'tvOS environment',
|
||||||
'func': check_statement('TargetConditionals.h', 'int x = TARGET_OS_TV;'),
|
'func': check_statement(
|
||||||
|
['TargetConditionals.h', 'assert.h'],
|
||||||
|
'static_assert(TARGET_OS_TV, "TARGET_OS_TV defined to zero!")'
|
||||||
|
),
|
||||||
}, {
|
}, {
|
||||||
'name': '--egl-android',
|
'name': '--egl-android',
|
||||||
'desc': 'Android EGL support',
|
'desc': 'Android EGL support',
|
||||||
|
|
Loading…
Reference in New Issue