aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--render/vulkan/meson.build3
-rw-r--r--render/vulkan/shaders/meson.build3
2 files changed, 6 insertions, 0 deletions
diff --git a/render/vulkan/meson.build b/render/vulkan/meson.build
index 6ae8df0c..0c45a713 100644
--- a/render/vulkan/meson.build
+++ b/render/vulkan/meson.build
@@ -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',
diff --git a/render/vulkan/shaders/meson.build b/render/vulkan/shaders/meson.build
index b183c46c..906618c2 100644
--- a/render/vulkan/shaders/meson.build
+++ b/render/vulkan/shaders/meson.build
@@ -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',