aboutsummaryrefslogtreecommitdiff
path: root/premake5.lua
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-08-23 23:03:22 +0200
committerhachem <im@hachem.wtf>2026-08-23 23:03:22 +0200
commit7ae22084c74cbe0c127e0ea1c96ec22a1f47d221 (patch)
tree61824ada272ffbc8dba0906b877f3dcae1b52d69 /premake5.lua
parent90ff03c2fdffc09ddb26bdc7e32c3968a6d274fb (diff)
[fix]: remove warnings and reimplement clean
Diffstat (limited to 'premake5.lua')
-rw-r--r--premake5.lua26
1 files changed, 21 insertions, 5 deletions
diff --git a/premake5.lua b/premake5.lua
index f2d840e..2d2b0c6 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -1,3 +1,21 @@
+-- premake5's built-in `clean` action is unported ("has not yet been ported"),
+-- so provide our own: wipe the build output and the generated project files.
+newaction {
+ trigger = "clean",
+ description = "Remove build output (bin, bin-int) and generated project files",
+ execute = function()
+ os.rmdir("bin")
+ os.rmdir("bin-int")
+ os.remove("Makefile")
+ for _, f in ipairs(os.matchfiles("*.make")) do os.remove(f) end
+ -- runtime state (all gitignored; the app regenerates it on next run)
+ os.rmdir("logs")
+ os.remove("config/settings.toml")
+ os.remove("imgui.ini")
+ print("Cleaned: bin/, bin-int/, Makefile, *.make, logs/, config/settings.toml, imgui.ini")
+ end
+}
+
workspace "Donut"
architecture "x64"
startproject "Donut"
@@ -9,10 +27,7 @@ workspace "Donut"
"Dist"
}
- flags
- {
- "MultiProcessorCompile"
- }
+ multiprocessorcompile "On"
filter "system:windows"
defines "DONUT_WINDOWS"
@@ -202,7 +217,8 @@ project "GLFW"
runtime "Debug"
symbols "on"
sanitize { "Address" }
- flags { "NoRuntimeChecks", "NoIncrementalLink" }
+ runtimechecks "Off"
+ incrementallink "Off"
filter "configurations:Release"
runtime "Release"