Skip to content

Commit 6520e8b

Browse files
committed
rockspec 0.3.2
1 parent 792f5a7 commit 6520e8b

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
package = "mtstates"
2+
version = "0.3.2-1"
3+
local versionNumber = version:gsub("^(.*)-.-$", "%1")
4+
source = {
5+
url = "https://github.com/osch/lua-mtstates/archive/v"..versionNumber..".zip",
6+
dir = "lua-mtstates-"..versionNumber,
7+
}
8+
description = {
9+
summary = "Multi-threading Lua states",
10+
homepage = "https://github.com/osch/lua-mtstates",
11+
license = "MIT/X11",
12+
detailed = [[
13+
This package provides a way to create new Lua states from within Lua for using
14+
them in arbitrary threads. The implementation is independent from the
15+
underlying threading library (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+
mtstates = {
27+
libraries = {"pthread"},
28+
}
29+
}
30+
},
31+
windows = {
32+
modules = {
33+
mtstates = {
34+
libraries = {"kernel32"},
35+
}
36+
}
37+
}
38+
},
39+
modules = {
40+
mtstates = {
41+
sources = {
42+
"src/main.c",
43+
"src/state.c",
44+
"src/error.c",
45+
"src/util.c",
46+
"src/async_util.c",
47+
"src/mtstates_compat.c",
48+
},
49+
defines = { "MTSTATES_VERSION="..versionNumber },
50+
},
51+
}
52+
}

0 commit comments

Comments
 (0)