mirror of https://github.com/mpv-player/mpv
build: Add support for static spirv-cross
This assumes a non-upstream .pc file since upstream doesn’t seem to give a fuck about this use case at all.
This commit is contained in:
parent
a38aa74454
commit
59f1e72a3c
15
wscript
15
wscript
|
@ -746,10 +746,23 @@ video_output_features = [
|
|||
'desc': 'libshaderc SPIR-V compiler',
|
||||
'deps': 'shaderc-shared || shaderc-static',
|
||||
'func': check_true,
|
||||
}, {
|
||||
'name': 'spirv-cross-shared',
|
||||
'desc': 'SPIRV-Cross SPIR-V shader converter (shared library)',
|
||||
'deps': '!static-build',
|
||||
'groups': ['spirv-cross'],
|
||||
'func': check_pkg_config('spirv-cross-c-shared'),
|
||||
}, {
|
||||
'name': 'spirv-cross-static',
|
||||
'desc': 'SPIRV-Cross SPIR-V shader converter (static library)',
|
||||
'deps': '!spirv-cross-shared',
|
||||
'groups': ['spirv-cross'],
|
||||
'func': check_pkg_config('spirv-cross'),
|
||||
}, {
|
||||
'name': '--spirv-cross',
|
||||
'desc': 'SPIRV-Cross SPIR-V shader converter',
|
||||
'func': check_pkg_config('spirv-cross-c-shared'),
|
||||
'deps': 'spirv-cross-shared || spirv-cross-static',
|
||||
'func': check_true,
|
||||
}, {
|
||||
'name': '--d3d11',
|
||||
'desc': 'Direct3D 11 video output',
|
||||
|
|
Loading…
Reference in New Issue