-
Notifications
You must be signed in to change notification settings - Fork 10
/
premake5.lua
82 lines (64 loc) · 1.99 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
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
79
80
81
82
include "./vendor/premake_customization/solution_items.lua"
include "Dependencies.lua"
include "./Editor/Resources/LUA/Engine.lua"
workspace "Engine"
configurations { "Debug", "Debug-AS", "Release", "Dist" }
targetdir "az"
startproject "Editor"
conformancemode "On"
language "C++"
cppdialect "C++20"
staticruntime "Off"
solution_items { ".editorconfig" }
configurations { "Debug", "Release", "Dist" }
flags { "MultiProcessorCompile" }
-- NOTE(Peter): Don't remove this. Please never use Annex K functions ("secure", e.g _s) functions.
defines {
"_CRT_SECURE_NO_WARNINGS",
"_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING",
"TRACY_ENABLE",
"TRACY_ON_DEMAND",
"TRACY_CALLSTACK=10",
}
filter "action:vs*"
linkoptions { "/ignore:4099" } -- NOTE(Peter): Disable no PDB found warning
disablewarnings { "4068" } -- Disable "Unknown #pragma mark warning"
filter "language:C++ or language:C"
architecture "x86_64"
filter "configurations:Debug or configurations:Debug-AS"
optimize "Off"
symbols "On"
filter { "system:windows", "configurations:Debug-AS" }
sanitize { "Address" }
flags { "NoRuntimeChecks", "NoIncrementalLink" }
filter "configurations:Release"
optimize "On"
symbols "Default"
filter "configurations:Dist"
optimize "Full"
symbols "Off"
filter "system:windows"
buildoptions { "/EHsc", "/Zc:preprocessor", "/Zc:__cplusplus" }
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
group "Dependencies"
include "Engine/vendor/GLFW"
include "Engine/vendor/imgui"
include "Engine/vendor/Box2D"
include "Engine/vendor/tracy"
include "Engine/vendor/JoltPhysics/JoltPhysicsPremake.lua"
include "Engine/vendor/JoltPhysics/JoltViewerPremake.lua"
include "Engine/vendor/NFD-Extended"
group "Dependencies/msdf"
include "Engine/vendor/msdf-atlas-gen"
group ""
group "Core"
include "Engine"
include "Engine-ScriptCore"
group ""
group "Tools"
include "Editor"
group ""
group "Runtime"
include "Engine-Runtime"
include "Engine-Launcher"
group ""