mirror of
https://github.com/mpv-player/mpv
synced 2025-02-21 07:16:56 +00:00
wscript: switch shaderc checks to pkgconfig
Shaderc has been shipping .pc files for almost three years and we all know of the advantages. If this turns out to be problematic the old checks can be re-added but I'd like to avoid doing this preemptively.
This commit is contained in:
parent
24dcb5d167
commit
2858073fd0
6
wscript
6
wscript
@ -680,14 +680,14 @@ video_output_features = [
|
||||
'desc': 'libshaderc SPIR-V compiler (shared library)',
|
||||
'deps': '!static-build',
|
||||
'groups': ['shaderc'],
|
||||
'func': check_cc(header_name='shaderc/shaderc.h', lib='shaderc_shared'),
|
||||
'func': check_pkg_config('shaderc'),
|
||||
}, {
|
||||
'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', 'stdc++']),
|
||||
'func': any_check(check_pkg_config('shaderc_combined'),
|
||||
check_pkg_config('shaderc_static')),
|
||||
}, {
|
||||
'name': '--shaderc',
|
||||
'desc': 'libshaderc SPIR-V compiler',
|
||||
|
Loading…
Reference in New Issue
Block a user