aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shaders
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-10-07 14:53:16 -0400
committerDavid Robillard <d@drobilla.net>2022-10-07 14:53:16 -0400
commit9b8d847284eea14d64d8d22cefde8103dee41132 (patch)
tree8a8634d1dd903b14e402cc1e5b100d309ae3c04e /examples/shaders
parent727b6835a63d2a163dae434e1090a14aa7011373 (diff)
downloadpugl-9b8d847284eea14d64d8d22cefde8103dee41132.tar.gz
pugl-9b8d847284eea14d64d8d22cefde8103dee41132.tar.bz2
pugl-9b8d847284eea14d64d8d22cefde8103dee41132.zip
Clean up meson definitions
Diffstat (limited to 'examples/shaders')
-rw-r--r--examples/shaders/meson.build60
1 files changed, 34 insertions, 26 deletions
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