-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathluaipc-scm-0.rockspec
60 lines (58 loc) · 1.33 KB
/
luaipc-scm-0.rockspec
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
package = "luaipc"
version = "scm-0"
source = {
url = "git://github.com/siffiejoe/lua-luaipc"
}
description = {
summary = "Portable binding for various IPC mechanisms.",
homepage = "https://github.com/siffiejoe/lua-luaipc/",
license = "MIT"
}
-- we probably support more, but it lacks testing (and
-- probably the build details are different):
supported_platforms = { "linux", "windows", "freebsd", "macosx" }
dependencies = {
"lua >= 5.1, < 5.4",
}
build = {
type = "make",
variables = {
DLL_INSTALL_DIR = "$(LIBDIR)",
LUA_INCDIR = "$(LUA_INCDIR)",
CC = "$(CC)",
CFLAGS = "$(CFLAGS) -DNDEBUG",
LIBFLAG = "$(LIBFLAG)",
LIB_EXTENSION = "$(LIB_EXTENSION)",
EXTRAFLAGS = "",
EXTRALIBS = "",
},
platforms = {
linux = {
variables = {
EXTRAFLAGS = "-D_POSIX_C_SOURCE=200809L -pthread",
EXTRALIBS = "-lrt"
}
},
freebsd = {
variables = {
EXTRALIBS = "-lc"
}
},
windows = {
type = "builtin",
modules = {
ipc = {
sources = {
"ipc.c", "memfile.c", "strfile.c", "shm.c",
"mmap.c", "sem.c", "flock.c", "proc.c",
},
defines = {
"IPC_API=__declspec(dllexport)",
--"NDEBUG",
"_CRT_SECURE_NO_WARNINGS",
},
}
}
}
}
}