summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-12-19 17:43:22 +0100
committersfan5 <sfan5@live.de>2021-12-19 19:08:01 +0100
commit2858073fd03616f6fef0351256fc897352088987 (patch)
treec225f13a8791d6a7fedb22fd57a1e4e73da867a3
parent24dcb5d167ba9580119e0b9cc26f79b1d155fcdc (diff)
downloadmpv-2858073fd03616f6fef0351256fc897352088987.tar.bz2
mpv-2858073fd03616f6fef0351256fc897352088987.tar.xz
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.
-rw-r--r--wscript6
1 files changed, 3 insertions, 3 deletions
diff --git a/wscript b/wscript
index a0227e648e..f4ad6c6d95 100644
--- a/wscript
+++ b/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',