forked from deplinenoise/webby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tundra.lua
41 lines (41 loc) · 886 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
local CFiles = { ".c", ".h" }
Build {
Configs = {
Config {
Name = "generic-gcc",
DefaultOnHost = "linux",
Tools = { "gcc" },
},
Config {
Name = "macosx-gcc",
DefaultOnHost = "macosx",
Tools = { "gcc-osx" },
Env = {
CCOPTS = {
{ '-Wall', '-Werror' },
{ '-g'; Config = "*-*-debug" },
{ '-O2'; Config = "*-*-release" },
},
},
},
Config {
Name = "win64-msvc",
DefaultOnHost = "windows",
Tools = { "msvc-winsdk"; TargetPlatform = "x64" },
Env = {
CPPDEFS = { "_CRT_SECURE_NO_WARNINGS" },
CCOPTS = { '/W4', '/wd4127', '/wd4100' },
{ GENERATE_PDB = 1; Config = "*-*-debug" },
},
},
},
Units = function()
require "tundra.syntax.glob"
local demo = Program {
Name = "webbydemo",
Sources = { "demo.c", "webby.c" },
Libs = { { "ws2_32.lib"; Config = "win64-msvc" } },
}
Default(demo)
end,
}