mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
5332935afc
This suppresses the output filename printed to stdout. Errors and warnings should still be printed to stderr as usual.
23 lines
483 B
Meson
23 lines
483 B
Meson
vulkan_shaders_src = [
|
|
'common.vert',
|
|
'texture.frag',
|
|
'quad.frag',
|
|
]
|
|
|
|
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',
|
|
input: shader,
|
|
command: args)
|
|
|
|
vulkan_shaders += [header]
|
|
endforeach
|
|
|
|
wlr_files += vulkan_shaders
|