build: Conditionally enable --quiet for glslang.

Signed-off-by: Georg Lehmann <dadschoorse@gmail.com>
This commit is contained in:
Georg Lehmann 2021-04-21 12:08:42 +02:00 committed by Hans-Kristian Arntzen
parent 3d0913dc19
commit 0d727274f9
1 changed files with 5 additions and 1 deletions

View File

@ -78,9 +78,13 @@ idl_generator = generator(idl_compiler,
arguments : [ '-h', '-o', '@OUTPUT@', '@INPUT@' ])
glsl_compiler = find_program('glslangValidator')
glsl_args = [ '-V', '--vn', '@BASENAME@', '@INPUT@', '-o', '@OUTPUT@' ]
if run_command(glsl_compiler, [ '--quiet', '--version' ]).returncode() == 0
glsl_args += [ '--quiet' ]
endif
glsl_generator = generator(glsl_compiler,
output : [ '@BASENAME@.h' ],
arguments : [ '--quiet', '-V', '--vn', '@BASENAME@', '@INPUT@', '-o', '@OUTPUT@' ])
arguments : glsl_args)
threads_dep = dependency('threads')
lib_d3d12 = vkd3d_compiler.find_library('d3d12', required : false)