From 925b4e9a9bf1ec31273f7e65703e73167396aeb5 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 3 Jun 2025 14:46:04 +0200 Subject: [PATCH] feat: added build instructions --- premake5.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/premake5.lua b/premake5.lua index e69de29..0f6c4f7 100644 --- a/premake5.lua +++ b/premake5.lua @@ -0,0 +1,25 @@ +workspace "roguelike" + configurations { "debug", "release" } + location "." + +project "roguelike" + kind "WindowedApp" + language "C++" + cppdialect "C++20" + location "build/" + buildinputs "../resources/**.*" + buildoutputs "%{cfg.targetdir}/resources/**.*" + postbuildcommands "{COPYDIR} ../resources %{cfg.targetdir}" + files { "src/**.cpp", "vendor/**.cpp" } + includedirs { "src/", "vendor/" } + links { "SDL2", "SDL2_image", "m", "SDL2_ttf" } + targetdir "bin/" + exceptionhandling "Off" + filter "configurations:debug" + defines { "DEBUG" } + optimize "Off" + symbols "On" + filter "configurations:release" + defines { "NDEBUG" } + optimize "On" + symbols "Off"