-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
43 lines (34 loc) · 985 Bytes
/
premake5.lua
File metadata and controls
43 lines (34 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
include "Dependencies.lua"
workspace "LeafEngine"
startproject "LeafEditor"
architecture "x64"
configurations { "Debug", "Release", "Shipping" }
platforms { "x64" }
flags { "MultiProcessorCompile" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.platform}"
group "Dependencies"
include "Leaf/vendor/glfw"
include "Leaf/vendor/imgui"
group ""
include "Leaf"
include "LeafEditor"
include "LeafGame"
-- Clean ACTION --
newaction
{
trigger = "clean",
description = "Clean the generated project files and temporary objects",
execute = function()
print("==== Cleaning Leaf ====")
os.execute([["Premake\premake5 clean_engine"]])
print("==== Cleaning Leaf Editor ====")
os.execute([["Premake\premake5 clean_editor"]])
print("==== Cleaning Leaf Game ====")
os.execute([["Premake\premake5 clean_game"]])
print("==== Cleaning Engine ====")
os.rmdir("./bin")
os.rmdir("./bin-obj")
os.remove("LeafEngine.sln")
os.remove("Makefile")
end
}