-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy pathpremake5.lua
More file actions
78 lines (68 loc) · 1.81 KB
/
premake5.lua
File metadata and controls
78 lines (68 loc) · 1.81 KB
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
-- Function to read the version number from VERSION.txt
local function readVersion()
local versionFile = io.open("VERSION.txt", "r")
if versionFile then
local version = versionFile:read("*l")
versionFile:close()
return version
else
error("Could not open VERSION.txt")
end
end
local version = readVersion()
workspace "Overload"
configurations { "Debug", "Release" }
platforms { "x64" }
startproject "OvEditor"
defines {
"LUA_SCRIPTING",
"GRAPHICS_API_OPENGL",
"OVERLOAD_VERSION=\"" .. version .. "\"",
"TRACY_ENABLE",
"TRACY_ON_DEMAND",
"TRACY_MEMORY_ENABLE"
}
-- Set toolset based on operating system
filter {"system:windows"}
toolset("msc")
filter {"system:linux"}
toolset("clang") -- Use Clang on Linux (sol2 doesn't work well with GCC)
filter {}
-- Disable "Hot Reload": Doesn't work with Tracy.
editandcontinue "Off"
outputdir = "%{wks.location}/Bin/"
objoutdir = "%{wks.location}/Bin-Int/"
dependdir = "%{wks.location}/Dependencies/"
builddir = "%{wks.location}/Build/"
resdir = "%{wks.location}/Resources/"
group "Dependencies"
include "Dependencies/ImGui"
include "Dependencies/tinyxml2"
include "Dependencies/tracy"
include "Dependencies/lua"
include "Dependencies/glad"
include "Dependencies/soloud"
include "Dependencies/assimp"
include "Dependencies/glfw"
include "Dependencies/bullet3"
group ""
group "Dependencies/Prebuilt"
include "Dependencies/stb_image"
include "Dependencies/sol"
group ""
group "Overload SDK"
include "Sources/OvAudio"
include "Sources/OvCore"
include "Sources/OvDebug"
include "Sources/OvMaths"
include "Sources/OvPhysics"
include "Sources/OvRendering"
include "Sources/OvTools"
include "Sources/OvUI"
include "Sources/OvWindowing"
group ""
group "Overload Apps"
include "Sources/OvEditor"
include "Sources/OvGame"
group ""
include "Resources"