49 lines
1.2 KiB
Lua
49 lines
1.2 KiB
Lua
workspace "Vulkan-Practice"
|
|
architecture "x64"
|
|
configurations { "Debug", "Release", "Dist" }
|
|
language "C"
|
|
staticruntime "Off"
|
|
startproject "Game"
|
|
OutputDir = "%{cfg.system}-%{cfg.architecture}/%{cfg.buildcfg}"
|
|
|
|
libdirs {
|
|
os.findlib("SDL2"),
|
|
os.findlib("SDL2_image"),
|
|
os.findlib("m"),
|
|
os.findlib("vulkan")
|
|
}
|
|
|
|
project "Game"
|
|
kind "WindowedApp"
|
|
language "C"
|
|
targetdir "./bin/%{cfg.buildcfg}"
|
|
objdir "./intermediate/%{cfg.buildcfg}"
|
|
debugdir "."
|
|
files { "src/**.c", "cutes/**.c" }
|
|
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"
|
|
symbols "On"
|
|
|
|
filter "configurations:Release"
|
|
defines { "RELEASE" }
|
|
runtime "Release"
|
|
optimize "On"
|
|
symbols "On"
|
|
|
|
filter "configurations:Dist"
|
|
defines { "DIST" }
|
|
runtime "Release"
|
|
optimize "On"
|
|
symbols "Off"
|