-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtundra.lua
More file actions
46 lines (40 loc) · 739 Bytes
/
Copy pathtundra.lua
File metadata and controls
46 lines (40 loc) · 739 Bytes
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
local CCFiles = { ".cc", ".h" }
local common = {
Env = {
GENERATE_PDB = "1",
CXXOPTS = {
"/FC", -- necessary for Visual Studio to grep file path in Output Window
"/EHsc",
},
},
}
Build {
Configs = {
Config {
Name = "generic-gcc",
DefaultOnHost = "linux",
Tools = { "gcc" },
},
Config {
Name = "macosx-gcc",
DefaultOnHost = "macosx",
Tools = { "gcc-osx" },
},
Config {
Name = "win64-msvc",
DefaultOnHost = "windows",
Inherit = common,
Tools = { { "msvc-vs2013"; TargetPlatform = "x64" } },
},
},
Units = function()
require "tundra.syntax.glob"
Program {
Name = "parc",
Sources = {
Glob { Dir = "src", Extensions = CCFiles }
},
}
Default "parc"
end,
}