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:
Martin Herkt 2019-06-14 04:56:30 +02:00
parent a38aa74454
commit 59f1e72a3c
No known key found for this signature in database
GPG Key ID: C24B9CD04DC6AE7F
1 changed files with 14 additions and 1 deletions

15
wscript
View File

@ -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',