-
Notifications
You must be signed in to change notification settings - Fork 0
/
pmfile
69 lines (53 loc) · 1.32 KB
/
pmfile
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
60
61
62
63
64
65
66
67
68
--:mode=lua:--
include "pmlib/c.lua"
objects = group {
CCSOURCES = "src";
CCINCLUDES = "include";
c.file "xclua.c";
c.file "xclua_util.c";
c.file "xclua_load.c";
c.file "xclua_unload.c";
c.file "xclua_io.c";
c.file "xclua_list.c";
c.file "xclua_str.c";
c.file "xclua_context.c";
c.file "xclua_hooks.c";
c.file "xclua_hook_command.c";
c.file "xclua_hook_timer.c";
c.file "xclua_hook_server.c";
c.file "xclua_hook_print.c";
c.file "xclua_ftw.c";
}
plugin = c.sharedlib {
install = pm.install "lib/xclua.%EXT%";
outputs = { "%U%-xclua.%EXT%" };
objects;
}
linux = group {
LDLIBS = { "lua" };
EXT = "so";
plugin;
}
win32 = group {
CC = "/mingw/bin/i386-mingw32-gcc";
CCFLAGS = { PARENT, "-DWIN32" };
CCHEADERS = { PARENT, "/mingw/include/", "/mingw/include/lua/" };
LDPATHS = { "/mingw/bin", "/mingw/lib" };
LDLIBS = { "lua51" };
EXT = "dll";
STRIP = "/mingw/bin/i386-mingw32-strip";
plugin;
}
debug = group {
CCFLAGS = { PARENT, "-g", "-Werror" };
LDFLAGS = { PARENT, "-g" };
linux, win32;
}
docs = simple {
command = "rst2html.py < %in% > %out%";
outputs = { "%U%-%I%.html" };
install = pm.install "doc/xclua.html";
file "doc/xclua.rst";
}
all = group { linux, win32, docs }
default = all