From 9b8d847284eea14d64d8d22cefde8103dee41132 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 7 Oct 2022 14:53:16 -0400 Subject: Clean up meson definitions --- examples/shaders/meson.build | 60 +++++++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 26 deletions(-) (limited to 'examples/shaders') diff --git a/examples/shaders/meson.build b/examples/shaders/meson.build index 9121e97..c96b70c 100644 --- a/examples/shaders/meson.build +++ b/examples/shaders/meson.build @@ -18,33 +18,41 @@ if vulkan_dep.found() cat = find_program('../../scripts/cat.py') glslang = find_program('glslangValidator') - rect_vulkan_vert = custom_target('rect.vulkan.vert', - output: 'rect.vulkan.vert', - input: ['header_420.glsl', 'rect.vert'], - command: [cat, '@INPUT@'], - build_by_default: true, - capture: true) - - rect_vulkan_frag = custom_target('rect.vulkan.frag', - output: 'rect.vulkan.frag', - input: ['header_420.glsl', 'rect.frag'], - command: [cat, '@INPUT@'], - build_by_default: true, - capture: true) + rect_vulkan_vert = custom_target( + 'rect.vulkan.vert', + build_by_default: true, + capture: true, + command: [cat, '@INPUT@'], + input: ['header_420.glsl', 'rect.vert'], + output: 'rect.vulkan.vert', + ) + + rect_vulkan_frag = custom_target( + 'rect.vulkan.frag', + build_by_default: true, + capture: true, + command: [cat, '@INPUT@'], + input: ['header_420.glsl', 'rect.frag'], + output: 'rect.vulkan.frag', + ) glslang_command = [glslang, '-V', '-o', '@OUTPUT@', '@INPUT@'] - rect_vert_spv = custom_target('rect.vert.spv', - output: 'rect.vert.spv', - input: rect_vulkan_vert, - command: glslang_command, - build_by_default: true, - install: false) - - rect_frag_spv = custom_target('rect.frag.spv', - output: 'rect.frag.spv', - input: rect_vulkan_frag, - command: glslang_command, - build_by_default: true, - install: false) + rect_vert_spv = custom_target( + 'rect.vert.spv', + build_by_default: true, + command: glslang_command, + input: rect_vulkan_vert, + install: false, + output: 'rect.vert.spv', + ) + + rect_frag_spv = custom_target( + 'rect.frag.spv', + build_by_default: true, + command: glslang_command, + input: rect_vulkan_frag, + install: false, + output: 'rect.frag.spv', + ) endif -- cgit v1.2.1