From 3b4541477adfef3c4b32eafe13ab4b1e88bbcf17 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 30 Jan 2024 09:44:53 +0100 Subject: [PATCH] feat: added post build commands to compile shaders and copy shaders/ to target dir --- premake5.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/premake5.lua b/premake5.lua index 236c647..8177366 100644 --- a/premake5.lua +++ b/premake5.lua @@ -23,6 +23,13 @@ workspace "Vulkan-Practice" includedirs {"src/", "cutes"} links { "SDL2", "m", "vulkan", "SDL2_image" } + postbuildcommands { + "glslc shaders/shader.frag -o shaders/frag.spv", + "glslc shaders/shader.vert -o shaders/vert.spv", + "{RMDIR} %{cfg.targetdir}/shaders", + "{COPYDIR} shaders/ %{cfg.targetdir}/shaders/" + } + filter "configurations:Debug" defines { "DEBUG" } runtime "Debug"