Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Lehmann <dadschoorse@gmail.com>2021-04-21 13:14:43 +0300
committerPhilip Rebohle <25567304+doitsujin@users.noreply.github.com>2021-04-21 14:43:08 +0300
commit730f5cc418e055aaa266aac52ee240a87958e76d (patch)
tree133020f39fe9d519be2f3830cd9a85f8c8707343 /meson.build
parent6339c8ec17571c64f18f9a0184520b741e569cc5 (diff)
[build] conditionally enable --quiet for glslang
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index effc870a..b9dec25f 100644
--- a/meson.build
+++ b/meson.build
@@ -107,9 +107,13 @@ endif
def_spec_ext = '.def'
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 : [ '-V', '--vn', '@BASENAME@', '@INPUT@', '-o', '@OUTPUT@' ])
+ arguments : glsl_args)
if dxvk_is_msvc
wrc_generator = generator(wrc,