File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ package = " mtmsg"
2+ version = " 0.4.0-1"
3+ local versionNumber = version :gsub (" ^(.*)-.-$" , " %1" )
4+ source = {
5+ url = " https://github.com/osch/lua-mtmsg/archive/v" .. versionNumber .. " .zip" ,
6+ dir = " lua-mtmsg-" .. versionNumber ,
7+ }
8+ description = {
9+ summary = " Low-level multi-threading message buffers" ,
10+ homepage = " https://github.com/osch/lua-mtmsg" ,
11+ license = " MIT/X11" ,
12+ detailed = [[
13+ Low-level in-memory message buffers for inter-thread communication.
14+ This implementation is independent from the underlying threading library
15+ (e.g. `lanes` or `lua-llthreads2`)
16+ ]] ,
17+ }
18+ dependencies = {
19+ " lua >= 5.1, < 5.4" ,
20+ }
21+ build = {
22+ type = " builtin" ,
23+ platforms = {
24+ unix = {
25+ modules = {
26+ mtmsg = {
27+ libraries = {" pthread" },
28+ }
29+ }
30+ },
31+ windows = {
32+ modules = {
33+ mtmsg = {
34+ libraries = {" kernel32" },
35+ }
36+ }
37+ }
38+ },
39+ modules = {
40+ mtmsg = {
41+ sources = {
42+ " src/main.c" ,
43+ " src/buffer.c" ,
44+ " src/listener.c" ,
45+ " src/writer.c" ,
46+ " src/reader.c" ,
47+ " src/serialize.c" ,
48+ " src/error.c" ,
49+ " src/util.c" ,
50+ " src/async_util.c" ,
51+ " src/mtmsg_compat.c" ,
52+ },
53+ defines = { " MTMSG_VERSION=" .. versionNumber },
54+ },
55+ }
56+ }
You can’t perform that action at this time.
0 commit comments