-
Notifications
You must be signed in to change notification settings - Fork 82
/
units.lua
46 lines (34 loc) · 911 Bytes
/
units.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
StaticLibrary {
Name = "minifb",
Env = { CPPPATH = { "include", }, },
Sources = FGlob {
Dir = "src",
Extensions = { ".cpp", ".c", ".h", ".s", ".m" },
Filters = {
{ Pattern = "[/\\]windows[/\\]"; Config = { "win32-*", "win64-*" } },
{ Pattern = "[/\\]macosx[/\\]"; Config = "mac*-*" },
{ Pattern = "[/\\]x11[/\\]"; Config = { "x11-*" } },
{ Pattern = "[/\\]wayland[/\\]"; Config = { "wayland-*" } },
},
Recursive = true,
},
Propagate = {
Libs = {
"user32.lib"; Config = "win32-*",
"ws2_32.lib"; Config = "win32-*",
"gdi32.lib"; Config = "win32-*",
},
Frameworks = { "Cocoa" },
},
}
Program {
Name = "noise",
Env = { CPPPATH = { "include", }, },
Depends = { "minifb" },
Sources = { "tests/noise.c" },
Libs = {
{ "X11"; Config = "x11-*" },
{ "wayland-client", "wayland-cursor"; Config = "wayland-*" },
},
}
Default "noise"