aboutsummaryrefslogtreecommitdiff
path: root/ui/shader
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-07-15 17:36:47 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-21 06:30:14 -0400
commit650b5d548e84b284ae3942ab6b4831ed263dc261 (patch)
tree9c5b429170a7a670acf33e69e3d329d82ba3bc26 /ui/shader
parent2c273f32d3489a54010c70b4065222ff4dda3f49 (diff)
meson: generate shader headers
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ui/shader')
-rw-r--r--ui/shader/meson.build15
1 files changed, 15 insertions, 0 deletions
diff --git a/ui/shader/meson.build b/ui/shader/meson.build
new file mode 100644
index 0000000000..f69e44ed89
--- /dev/null
+++ b/ui/shader/meson.build
@@ -0,0 +1,15 @@
+shaders = [
+ ['texture-blit', 'frag'],
+ ['texture-blit', 'vert'],
+ ['texture-blit-flip', 'vert'],
+]
+
+foreach e : shaders
+ output = '@0@-@1@.h'.format(e[0], e[1])
+ genh += custom_target(output,
+ output: output,
+ capture: true,
+ build_by_default: true, # to be removed when added to a target
+ input: files('@0@.@1@'.format(e[0], e[1])),
+ command: [shaderinclude, '@INPUT0@'])
+endforeach