mirror of
https://github.com/mpv-player/mpv
synced 2024-12-25 16:33:02 +00:00
build: allow disabling vapoursynth completely
It's possible to build vf_vapoursynth with either the Python or Lua backend (or both or none). The check for the vapoursynth core itself was hidden away and couldn't be disabled, which would link mpv with vapoursynth even if all backends were disabled. Rearrange the checks so that the core will be disabled if no backend is found (or both are disabled). This duplicates the check for vapoursynth.pc, but since it's trivial, this is not that bad.
This commit is contained in:
parent
a75e933dac
commit
8838c4a5b1
15
wscript
15
wscript
@ -355,19 +355,20 @@ iconv support use --disable-iconv.",
|
|||||||
'name': '--lcms2',
|
'name': '--lcms2',
|
||||||
'desc': 'LCMS2 support',
|
'desc': 'LCMS2 support',
|
||||||
'func': check_pkg_config('lcms2', '>= 2.6'),
|
'func': check_pkg_config('lcms2', '>= 2.6'),
|
||||||
}, {
|
|
||||||
'name': 'vapoursynth-core',
|
|
||||||
'desc': 'VapourSynth filter bridge (core)',
|
|
||||||
'func': check_pkg_config('vapoursynth >= 24'),
|
|
||||||
}, {
|
}, {
|
||||||
'name': '--vapoursynth',
|
'name': '--vapoursynth',
|
||||||
'desc': 'VapourSynth filter bridge (Python)',
|
'desc': 'VapourSynth filter bridge (Python)',
|
||||||
'deps': ['vapoursynth-core'],
|
'func': check_pkg_config('vapoursynth', '>= 24',
|
||||||
'func': check_pkg_config('vapoursynth-script >= 23'),
|
'vapoursynth-script', '>= 23'),
|
||||||
}, {
|
}, {
|
||||||
'name': '--vapoursynth-lazy',
|
'name': '--vapoursynth-lazy',
|
||||||
'desc': 'VapourSynth filter bridge (Lazy Lua)',
|
'desc': 'VapourSynth filter bridge (Lazy Lua)',
|
||||||
'deps': ['vapoursynth-core', 'lua'],
|
'deps': ['lua'],
|
||||||
|
'func': check_pkg_config('vapoursynth', '>= 24'),
|
||||||
|
}, {
|
||||||
|
'name': 'vapoursynth-core',
|
||||||
|
'desc': 'VapourSynth filter bridge (core)',
|
||||||
|
'deps_any': ['vapoursynth', 'vapoursynth-lazy'],
|
||||||
'func': check_true,
|
'func': check_true,
|
||||||
}, {
|
}, {
|
||||||
'name': '--libarchive',
|
'name': '--libarchive',
|
||||||
|
Loading…
Reference in New Issue
Block a user