mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
render/vulkan: quiet glslangValidator
This suppresses the output filename printed to stdout. Errors and warnings should still be printed to stderr as usual.
This commit is contained in:
parent
1d9c1bcea6
commit
5332935afc
2 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,9 @@ if not glslang.found()
|
|||
endif
|
||||
endif
|
||||
|
||||
glslang_version_info = run_command(glslang, '--version', check: true).stdout()
|
||||
glslang_version = glslang_version_info.split('\n')[0].split(':')[-1]
|
||||
|
||||
wlr_files += files(
|
||||
'renderer.c',
|
||||
'texture.c',
|
||||
|
|
|
@ -8,6 +8,9 @@ vulkan_shaders = []
|
|||
foreach shader : vulkan_shaders_src
|
||||
name = shader.underscorify() + '_data'
|
||||
args = [glslang, '-V', '@INPUT@', '-o', '@OUTPUT@', '--vn', name]
|
||||
if glslang_version.version_compare('>=11.0.0')
|
||||
args += '--quiet'
|
||||
endif
|
||||
header = custom_target(
|
||||
shader + '_spv',
|
||||
output: shader + '.h',
|
||||
|
|
Loading…
Reference in a new issue