aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/shaders/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'render/vulkan/shaders/meson.build')
-rw-r--r--render/vulkan/shaders/meson.build20
1 files changed, 20 insertions, 0 deletions
diff --git a/render/vulkan/shaders/meson.build b/render/vulkan/shaders/meson.build
new file mode 100644
index 00000000..b183c46c
--- /dev/null
+++ b/render/vulkan/shaders/meson.build
@@ -0,0 +1,20 @@
+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]
+ header = custom_target(
+ shader + '_spv',
+ output: shader + '.h',
+ input: shader,
+ command: args)
+
+ vulkan_shaders += [header]
+endforeach
+
+wlr_files += vulkan_shaders