aboutsummaryrefslogtreecommitdiff
path: root/ui
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
parent2c273f32d3489a54010c70b4065222ff4dda3f49 (diff)
downloadqemu-650b5d548e84b284ae3942ab6b4831ed263dc261.zip
qemu-650b5d548e84b284ae3942ab6b4831ed263dc261.tar.gz
qemu-650b5d548e84b284ae3942ab6b4831ed263dc261.tar.bz2
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')
-rw-r--r--ui/meson.build2
-rw-r--r--ui/shader/meson.build15
2 files changed, 17 insertions, 0 deletions
diff --git a/ui/meson.build b/ui/meson.build
index a6aa7f2..35da0d8 100644
--- a/ui/meson.build
+++ b/ui/meson.build
@@ -32,3 +32,5 @@ if have_system
'code-map', '@INPUT0@', e[0], e[1]])
endforeach
endif
+
+subdir('shader')
diff --git a/ui/shader/meson.build b/ui/shader/meson.build
new file mode 100644
index 0000000..f69e44e
--- /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