-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtundra.lua
73 lines (66 loc) · 2.19 KB
/
tundra.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
Build {
Units = {
"Build/Tundra/framework.lua",
"Build/Tundra/units.lua"
},
Passes = {
CodeGeneration = { Name = "CodeGeneration" , BuildOrder = 1 },
BuildCode = { Name = "BuildCode", BuildOrder = 2 },
Deploy = { Name = "Deploy", BuildOrder = 3 }
},
Configs = {
{
Name = "win64-msvc",
DefaultOnHost = "windows",
Tools = { "msvc-vs2022" },
Env = {
CPPPATH = {
"$(OBJECTDIR)$(SEP)Source"
},
SHLIBOPTS = "/NODEFAULTLIB:library",
CXXOPTS = { "/EHsc", "/std:c++17" },
CXXOPTS_DEBUG = { "/Od", "/MDd", "/D \"_DEBUG\"" },
CXXOPTS_RELEASE = { "/Ox", "/MD" },
CXXOPTS_PRODUCTION = { "/O2", "/MD" },
},
},
{
Name = "linux-gcc",
DefaultOnHost = "linux",
Tools = { "gcc" },
Env = {
CPPPATH = {
"$(OBJECTDIR)$(SEP)Source"
},
CXXOPTS = { "-std=c++17", "-fPIC", "-Wno-multichar", "-Wno-write-strings", "-mlzcnt" },
CXXOPTS_DEBUG = { "-ggdb", "-D _DEBUG=1" },
CCOPTS = { "-fPIC", "-Wno-multichar" },
},
ReplaceEnv = {
LD = "$(CXX)"
},
},
},
Env = {
GENERATE_PDB = "1"
},
IdeGenerationHints = {
Msvc = {
-- Remap config names to MSVC platform names (affects things like header scanning & debugging)
PlatformMappings = {
['win64-msvc'] = 'Win',
},
-- Remap variant names to MSVC friendly names
VariantMappings = {
['release-default'] = 'release',
['debug-default'] = 'debug',
['production-default'] = 'production',
},
},
-- Override solutions to generate and what units to put where.
MsvcSolutions = {
['coalpy.sln'] = {}, -- receives all the units due to empty set
},
BuildAllByDefault = true,
}
}