mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55: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
|
||||||
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(
|
wlr_files += files(
|
||||||
'renderer.c',
|
'renderer.c',
|
||||||
'texture.c',
|
'texture.c',
|
||||||
|
|
|
@ -8,6 +8,9 @@ vulkan_shaders = []
|
||||||
foreach shader : vulkan_shaders_src
|
foreach shader : vulkan_shaders_src
|
||||||
name = shader.underscorify() + '_data'
|
name = shader.underscorify() + '_data'
|
||||||
args = [glslang, '-V', '@INPUT@', '-o', '@OUTPUT@', '--vn', name]
|
args = [glslang, '-V', '@INPUT@', '-o', '@OUTPUT@', '--vn', name]
|
||||||
|
if glslang_version.version_compare('>=11.0.0')
|
||||||
|
args += '--quiet'
|
||||||
|
endif
|
||||||
header = custom_target(
|
header = custom_target(
|
||||||
shader + '_spv',
|
shader + '_spv',
|
||||||
output: shader + '.h',
|
output: shader + '.h',
|
||||||
|
|
Loading…
Reference in a new issue