-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
45 lines (36 loc) · 971 Bytes
/
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
workspace "Hyper"
architecture "x86_64"
startproject "Hyper"
configurations
{
"Debug",
"Release"
}
flags
{
"MultiProcessorCompile",
-- "FatalWarnings"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
newoption {
trigger = "use-vld",
description = "Enable the use of VLD to check for memory leaks."
}
newoption {
trigger = "use-aftermath",
description = "Enable Nsight Aftermath to generate GPU dumps when a TDR happens."
}
if (_OPTIONS["use-vld"]) then
print("VLD was enabled, memory leaks will get detected.")
end
if (_OPTIONS["use-aftermath"]) then
print("Nsight Aftermath was enabled, GPU crash dumps will get generated.")
end
include "Dependencies.lua"
group "Dependencies"
include "Hyper/dependencies/glfw"
include "Hyper/dependencies/imgui"
include "Hyper/dependencies/Optick"
include "Hyper/dependencies/stb"
group ""
include "Hyper"