From 55e860261b51f2d0f16a736476136295d48fcfd7 Mon Sep 17 00:00:00 2001 From: Sara Date: Thu, 25 Jan 2024 22:36:52 +0100 Subject: [PATCH] feat: added premake5.lua --- premake5.lua | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 premake5.lua diff --git a/premake5.lua b/premake5.lua new file mode 100644 index 0000000..236c647 --- /dev/null +++ b/premake5.lua @@ -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"