From cf2290444cb0554aa9f7605679f476d945109034 Mon Sep 17 00:00:00 2001 From: Reece Wilson Date: Mon, 18 Jul 2022 16:47:59 +0100 Subject: [PATCH] [+] Tehe --- Core/Core.lua | 3 ++- Core/Premake/Premake.lua | 12 ++++++++++++ Public/premake5.lua | 2 ++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Core/Premake/Premake.lua diff --git a/Core/Core.lua b/Core/Core.lua index d10347c..e0ce63c 100644 --- a/Core/Core.lua +++ b/Core/Core.lua @@ -1,4 +1,5 @@ return { project = auRequire("Core/project"), - solution = auRequire("Core/solution") + solution = auRequire("Core/solution"), + premake = auRequire("Core/Premake") } \ No newline at end of file diff --git a/Core/Premake/Premake.lua b/Core/Premake/Premake.lua new file mode 100644 index 0000000..3440258 --- /dev/null +++ b/Core/Premake/Premake.lua @@ -0,0 +1,12 @@ +--require('vstudio') + +if (_G.didAnExperimentalThing) then return end +_G.didAnExperimentalThing = true + +premake.override(premake.project, "bake", function(base, prj) + print("\tBuilding project: " .. prj.name) + local x = os.clock() + local ret = base(prj) + print(string.format("\tElapsed: %.2f seconds\n", os.clock() - x)) + return ret +end) \ No newline at end of file diff --git a/Public/premake5.lua b/Public/premake5.lua index bae7f0f..614d3f0 100644 --- a/Public/premake5.lua +++ b/Public/premake5.lua @@ -1,5 +1,7 @@ premake.path = premake.path .. ";" .. os.realpath(path.translate("..\\")) +require("../Core/Premake/Premake") + require("base") -------------------------------------------------------