From 84737a5159936eb385b3ca267d7211cb037e3d67 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Mon, 3 Jul 2023 04:45:20 +0200 Subject: [PATCH] build: Include the right things If we build our own targets, we need to include those. This is only relevant when adding new shaders because meson will complain that the (unused) sources don't exist as it tries to include those. And that will make the build.ninja file not be generated which would have build those shaders and would have allowed to copy them into the sources. Note that this makes builds with glslc not care about all the shader files being included with the sources, but we have CI to check that. --- gsk/vulkan/resources/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gsk/vulkan/resources/meson.build b/gsk/vulkan/resources/meson.build index 3e5b00dafa..5075f97b83 100644 --- a/gsk/vulkan/resources/meson.build +++ b/gsk/vulkan/resources/meson.build @@ -87,8 +87,10 @@ foreach shader: gsk_private_vulkan_shaders '-o', '@OUTPUT@' ]) gsk_private_vulkan_compiled_shaders_deps += [compiled_shader, compiled_clip_shader, compiled_clip_rounded_shader] + gsk_private_vulkan_compiled_shaders += [spv_shader, clip_spv_shader, clip_rounded_spv_shader] + else + gsk_private_vulkan_compiled_shaders += files(spv_shader, clip_spv_shader, clip_rounded_spv_shader) endif - gsk_private_vulkan_compiled_shaders += files(spv_shader, clip_spv_shader, clip_rounded_spv_shader) endforeach foreach shader: gsk_private_vulkan_vertex_shaders -- 2.30.2