Skip to content

Commit

Permalink
wscript: switch shaderc checks to pkgconfig
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sfan5 committed Dec 19, 2021
1 parent 24dcb5d commit 2858073
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2858073

Please sign in to comment.