mirror of
https://github.com/mpv-player/mpv
synced 2025-02-16 12:17:12 +00:00
wscript: support static linking of shaderc
These idiots have no idea how to design a library, so we’ll have to work around their bullshit for now.
This commit is contained in:
parent
a721dac601
commit
79b9f48353
17
wscript
17
wscript
@ -728,10 +728,25 @@ video_output_features = [
|
||||
'desc': 'Direct3D support',
|
||||
'deps': 'win32-desktop && gpl',
|
||||
'func': check_cc(header_name='d3d9.h'),
|
||||
}, {
|
||||
'name': 'shaderc-shared',
|
||||
'desc': 'libshaderc SPIR-V compiler (shared library)',
|
||||
'deps': '!static-build',
|
||||
'groups': ['shaderc'],
|
||||
'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc_shared'),
|
||||
}, {
|
||||
'name': 'shaderc-static',
|
||||
'desc': 'libshaderc SPIR-V compiler (static library)',
|
||||
'deps': '!shaderc-shared',
|
||||
'groups': ['shaderc'],
|
||||
'func': check_cc(header_name='shaderc/shaderc.h',
|
||||
lib=['shaderc_combined', 'glslang', 'SPIRV-Tools',
|
||||
'SPIRV-Tools-opt', 'stdc++']),
|
||||
}, {
|
||||
'name': '--shaderc',
|
||||
'desc': 'libshaderc SPIR-V compiler',
|
||||
'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc_shared'),
|
||||
'deps': 'shaderc-shared || shaderc-static',
|
||||
'func': check_true,
|
||||
}, {
|
||||
'name': '--crossc',
|
||||
'desc': 'libcrossc SPIR-V translator',
|
||||
|
Loading…
Reference in New Issue
Block a user