-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpremake5.lua
51 lines (47 loc) · 1.15 KB
/
premake5.lua
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
44
45
46
47
48
49
50
51
workspace "Dusk"
architecture "x64"
outputDir = "%{cfg.system}-%{cfg.buildcfg}-%{cfg.architecture}"
dependenciesDir = "%{wks.location}/Dependencies"
configurations
{
"Debug",
"Release",
"ReleaseWithInfo",
"ReleaseNoImGui" -- Should probably swap for ReleaseWithImGui
}
startproject "DuskEditor"
if _ACTION ~= "gmake2" then
group "Dependencies"
end
include "Dependencies/glew"
include "Dependencies/glfw"
include "Dependencies/imgui"
include "Dependencies/yaml-cpp"
include "Dependencies/ImGuizmo"
include "Dependencies/rttr"
include "Dependencies/lua"
include "Dependencies/zstd"
if _ACTION ~= "gmake2" then
group "Engine"
end
include "DuskEngine"
include "DuskEditor"
include "DuskRuntime"
newaction
{
trigger = "clean",
description = "Cleans the generated projected files, binaries and intermediates",
execute = function()
print("Removing binaries...")
os.rmdir("bin")
print("Removing intermediate files...")
os.rmdir("bin-int")
print("Removing project files...")
os.remove("**.sln")
os.remove("**.vcxproj")
os.remove("**.vcxproj.filters")
os.remove("**.vcxproj.user")
os.remove("**Makefile")
print("Done")
end
}