diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-07-15 17:36:47 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-21 06:30:14 -0400 |
commit | 650b5d548e84b284ae3942ab6b4831ed263dc261 (patch) | |
tree | 9c5b429170a7a670acf33e69e3d329d82ba3bc26 /ui | |
parent | 2c273f32d3489a54010c70b4065222ff4dda3f49 (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')
-rw-r--r-- | ui/meson.build | 2 | ||||
-rw-r--r-- | ui/shader/meson.build | 15 |
2 files changed, 17 insertions, 0 deletions
diff --git a/ui/meson.build b/ui/meson.build index a6aa7f2b36..35da0d8d26 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 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 |