forked from Kalmalyzer/M68060Simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tundra.lua
47 lines (41 loc) · 986 Bytes
/
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
local common = {
Env = {
M68KMAKE = "$(OBJECTDIR)$(SEP)m68kmake$(PROGSUFFIX)",
},
}
local win32 = {
Inherit = common,
Env = {
--GENERATE_PDB = "1",
CCOPTS = {
"/D_CRT_SECURE_NO_WARNINGS", -- Disable warning about using "fopen" instead of "fopen_s", etc
"/W3", -- Warning level 3
"/WX", -- Treat all warnings as errors
"/wd4127", -- Disable warning C4127: conditional expression is constant
"/wd4702", -- Disable warning C4702: unreachable code
{ "/Od"; Config = "*-*-debug" },
{ "/O2"; Config = "*-*-release" },
},
},
}
Build {
Units = "units.lua",
Passes = {
CompileGenerator = { Name="Compile generator", BuildOrder = 1 },
CodeGeneration = { Name="Generate sources", BuildOrder = 2 },
},
Configs = {
{
Name = "macosx-gcc",
DefaultOnHost = "macosx",
Inherit = common,
Tools = { "gcc", "mono" },
},
{
Name = "win32-msvc",
DefaultOnHost = "windows",
Inherit = win32,
Tools = { "msvc", "mono" },
},
},
}