-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
88 lines (70 loc) · 2.06 KB
/
premake5.lua
File metadata and controls
88 lines (70 loc) · 2.06 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
79
80
81
82
83
84
85
86
87
88
include "./vendor/premake_customization/solution_items.lua"
include "Dependencies.lua"
include "./Editor/Resources/LUA/Beyond.lua"
workspace "Beyond"
configurations { "Debug", "Debug-AS", "Release", "Dist" }
targetdir "build"
startproject "Editor"
conformancemode "On"
language "C++"
cppdialect "C++latest"
staticruntime "Off"
solution_items { ".editorconfig" }
externalwarnings "Off"
flags { "MultiProcessorCompile" }
-- NOTE: 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",
"EASTL_EASTDC_VSNPRINTF=0",
"GLM_FORCE_XYZW_ONLY"
}
filter "action:vs*"
linkoptions { "/ignore:4099" } -- NOTE: 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"
defines {
"EASTL_DEV_DEBUG=1",
}
filter { "system:windows", "configurations:Debug-AS" }
sanitize { "Address" }
editandcontinue "Off"
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 "Beyond/vendor/GLFW"
include "Beyond/vendor/imgui"
include "Beyond/vendor/EASTL-3.21.23"
include "Beyond/vendor/spdlog"
include "Beyond/vendor/tracy"
include "Beyond/vendor/JoltPhysics/JoltPhysicsPremake.lua"
include "Beyond/vendor/JoltPhysics/JoltViewerPremake.lua"
include "Beyond/vendor/NFD-Extended"
group "Dependencies/msdf"
include "Beyond/vendor/msdf-atlas-gen"
group ""
group "Core"
include "Beyond"
include "ScriptCore"
group ""
group "Tools"
include "Editor"
group ""
group "Runtime"
include "Runtime"
group ""