forked from jsvennevid/openvcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtundra.lua
More file actions
25 lines (23 loc) · 851 Bytes
/
tundra.lua
File metadata and controls
25 lines (23 loc) · 851 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
local common = {
Env = {
CCOPTS = { "-ansi", "-pedantic", "-Werror", "-g", Config = "*-gcc-*" },
LIBS = { "stdc++", Config = { "*-clang", "*-gcc-*" } }
}
}
Build {
Units = function()
Program {
Name = "openvcl",
Sources = { Glob { Dir = "src", Extensions = { ".c", ".cpp", ".h" } } }
}
Default "openvcl"
end,
SyntaxExtensions = { "tundra.syntax.glob" },
Configs = {
Config { Name = "macosx-clang", Inherit = common, Tools = { "clang-osx" }, DefaultOnHost = "macosx" },
Config { Name = "macosx-gcc", Inherit = common, Tools = { "gcc-osx" } },
Config { Name = "win32-msvc", Inherit = common, Tools = { { "msvc-winsdk"; TargetArch = "x86" } } },
Config { Name = "win64-msvc", Inherit = common, Tools = { { "msvc-winsdk"; TargetArch = "x64" } } },
Config { Name = "linux-gcc", Inherit = common, Tools = { "gcc" } },
},
}