aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"