forked from deplinenoise/rlaunch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunits.lua
59 lines (54 loc) · 1.04 KB
/
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
47
48
49
50
51
52
53
54
55
56
57
58
59
require "tundra.syntax.glob"
require "src.msgcompiler"
StaticLibrary {
Name = "common",
Sources = {
"src/util.c", "src/transport.c", "src/peer.c", "src/protocol.c", "src/socket_includes.c",
CompileNetMessages {
Pass = "Codegen",
Input = 'src/rlnet.msg',
OutputStem = 'rlnet',
}
},
Includes = {
"$(OBJECTDIR)/_generated", "src",
},
}
Program {
Config = { "macosx-*-*", "win64-*-*", "linux-*-*" },
Name = "rl-controller",
Env = {
CPPDEFS = { "_GNU_SOURCE"; Config = "linux-*-*"},
},
Includes = {
"$(OBJECTDIR)/_generated", "src",
},
Sources = {
"src/controller.c", "src/file_server.c"
},
Depends = {
"common"
},
Libs = {
{ "ws2_32.lib"; Config = "win64-*-*" },
},
}
Program {
Name = "rl-target",
Libs = { "amiga"; Config = "amiga-*-*" },
Includes = {
"$(OBJECTDIR)/_generated", "src",
},
Sources = {
{ "src/amigafs.c"; Config = "amiga-*-*" },
"src/target.c"
},
Depends = {
"common"
},
Libs = {
{ "ws2_32.lib"; Config = "win64-*-*" },
},
}
Default "rl-controller"
Default "rl-target"