feat: added post build commands to compile shaders and copy shaders/ to target dir
parent
db3fb15c7e
commit
3b4541477a
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue