feat: added post build commands to compile shaders and copy shaders/ to target dir

main
Sara 2024-01-30 09:44:53 +01:00
parent db3fb15c7e
commit 3b4541477a
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ workspace "Vulkan-Practice"
includedirs {"src/", "cutes"} includedirs {"src/", "cutes"}
links { "SDL2", "m", "vulkan", "SDL2_image" } 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" filter "configurations:Debug"
defines { "DEBUG" } defines { "DEBUG" }
runtime "Debug" runtime "Debug"