feat: added premake5.lua

main
Sara 2024-01-25 22:36:52 +01:00
parent 2f3fb8206c
commit 55e860261b
1 changed files with 41 additions and 0 deletions

41
premake5.lua Normal file
View File

@ -0,0 +1,41 @@
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" }
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"