-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpremake5.lua
131 lines (110 loc) · 2.65 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
include "tools/scripts/folders.lua"
include "tools/scripts/including.lua"
include "tools/scripts/linking.lua"
include "tools/scripts/options.lua"
include "tools/scripts/platform.lua"
-- ==================
-- Workspace
-- ==================
workspace "LegoRacersMod"
location "build"
objdir "%{wks.location}/obj"
systemversion "latest"
cppdialect "C++17"
flags {
"MultiProcessorCompile"
}
configurations {
"Debug",
"Release"
}
platforms {
"x86"
}
defaultplatform "x86"
disablewarnings {
"26812" -- Prefer enum class over unscoped
}
filter "platforms:x86"
architecture "x86"
defines "ARCH_x86"
filter {}
filter "platforms:x64"
architecture "x86_64"
defines "ARCH_x64"
filter {}
filter "system:windows"
defines "OS_TARGET_WINDOWS"
filter {}
filter "system:linux"
defines "OS_TARGET_LINUX"
filter {}
filter "configurations:Debug"
defines "_DEBUG"
optimize "Debug"
symbols "On"
filter {}
filter "configurations:Release"
defines "NDEBUG"
optimize "Full"
symbols "Off"
flags {
"FatalWarnings"
}
filter {}
defines {
"__STDC_LIB_EXT1__",
"__STDC_WANT_LIB_EXT1__=1",
"_CRT_SECURE_NO_WARNINGS",
"NOMINMAX"
}
-- ========================
-- ThirdParty
-- ========================
include "thirdparty/antlr4.lua"
include "thirdparty/asmjit.lua"
include "thirdparty/catch2.lua"
include "thirdparty/jsonlib.lua"
include "thirdparty/zycore.lua"
include "thirdparty/zydis.lua"
-- ThirdParty group: All projects that are external dependencies
group "ThirdParty"
antlr4:project()
asmjit:project()
catch2:project()
jsonlib:project()
zycore:project()
zydis:project()
group ""
-- ========================
-- Components
-- ========================
include "src/AssetLib.lua"
include "src/Hooking.lua"
include "src/Utils.lua"
-- Components group: All projects that are static libs for executables
group "Components"
AssetLib:project()
Hooking:project()
Utils:project()
group ""
-- ========================
-- Executables
-- ========================
include "src/AssetConverter.lua"
include "src/JamFileTool.lua"
include "src/LRCompiler.lua"
include "src/ProxyLibrary.lua"
-- Main projects
AssetConverter:project()
JamFileTool:project()
LRCompiler:project()
ProxyLibrary:project()
-- ========================
-- Tests
-- ========================
include "test/AssetLibTests.lua"
-- Tests group: Unit test and other tests projects
group "Tests"
AssetLibTests:project()
group ""