render/vulkan: quiet glslangValidator

This suppresses the output filename printed to stdout. Errors and
warnings should still be printed to stderr as usual.
master
Simon Ser 3 years ago committed by Simon Zeni
parent 1d9c1bcea6
commit 5332935afc

@ -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…
Cancel
Save