-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathtundra.lua
77 lines (67 loc) · 1.83 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
74
75
76
77
local macosx = {
Env = {
CPPDEFS = { "EMGUI_MACOSX" },
CCOPTS = {
"-Wall",
"-mmacosx-version-min=10.7",
"-Wno-format-security",
"-Wno-deprecated-declarations", -- TickCount issue no Mountain Lion (needs to be fixed)
"-I.", "-DMACOSX", "-Wall",
{ "-O0", "-g"; Config = "*-*-debug" },
{ "-O3"; Config = "*-*-release" },
},
PROGOPTS = {
"-mmacosx-version-min=10.7",
}
},
Frameworks = { "Cocoa" },
}
local win32 = {
Env = {
CPPDEFS = { "EMGUI_WINDOWS" },
GENERATE_PDB = "1",
CCOPTS = {
"/W4", "/I.", "/WX", "/DUNICODE", "/FS", "/D_UNICODE", "/DWIN32", "/D_CRT_SECURE_NO_WARNINGS", "/wd4996", "/wd4389", "/Wv:18",
{ "/Od"; Config = "*-*-debug" },
{ "/O2"; Config = "*-*-release" },
},
},
}
local linux = {
Env = {
CPPDEFS = { "EMGUI_UNIX" },
CCOPTS = {
"-I.",
"`sdl2-config --cflags`",
{ "-O0", "-g"; Config = "*-*-debug" },
{ "-O2"; Config = "*-*-release" },
},
LIBS = {
{"pthread", "m"; Config = "linux-*-*" },
},
},
}
Build {
Units = "units.lua",
Configs = {
Config { Name = "macosx-clang", DefaultOnHost = "macosx", Inherit = macosx, Tools = { "clang-osx" } },
Config { Name = "win32-msvc", DefaultOnHost = { "windows" }, Inherit = win32, Tools = { "msvc-vs2019" } },
Config { Name = "win32_msvc-bare", Inherit = win32, Tools = { "msvc" } },
Config { Name = "linux-gcc", DefaultOnHost = { "linux" }, Inherit = linux, Tools = { "gcc" } },
},
IdeGenerationHints = {
Msvc = {
PlatformMappings = {
['win32-msvc'] = 'Win32',
},
VariantMappings = {
['production'] = 'Production',
['release'] = 'Release',
['debug'] = 'Debug',
},
},
MsvcSolutions = {
['RocketEditor.sln'] = { } -- will get everything
},
},
}