aboutsummaryrefslogtreecommitdiff
path: root/lanes-4.0.0-0.rockspec
blob: 77e0f6a259024bd380c30f592c1fe05c6bcb87e8 (plain)
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
--
-- Lanes rockspec
--
-- Ref:
--      <http://luarocks.org/en/Rockspec_format>
--

package = "Lanes"

version = "4.0.0-0"

source= {
	url= "git+https://github.com/LuaLanes/lanes.git",
	branch= "v4.0.0"
}

description = {
	summary= "Multithreading support for Lua",
	detailed= [[
		Lua Lanes is a portable, message passing multithreading library
		providing the possibility to run multiple Lua states in parallel.
	]],
	license= "MIT/X11",
	homepage="https://github.com/LuaLanes/lanes",
	maintainer="Benoit Germain <bnt.germain@gmail.com>"
}

-- Q: What is the difference of "windows" and "win32"? Seems there is none;
--    so should we list either one or both?
--
supported_platforms= { "win32",
					   "macosx",
					   "linux",
					   "freebsd",   -- TBD: not tested
					   "msys",      -- TBD: not supported by LuaRocks 1.0 (or is it?)
}

dependencies= {
	"lua >= 5.1", -- builds with either 5.1/LuaJIT, 5.2, 5.3 and 5.4
}

build = {
	type = "builtin",
	platforms =
	{
		linux =
		{
			modules =
			{
				["lanes_core"] =
				{
					libraries = "pthread"
				},
			}
		}
	},
	modules =
	{
		["lanes.core"] =
		{
			sources =
			{
				"src/_pch.cpp",
				"src/allocator.cpp",
				"src/cancel.cpp",
				"src/compat.cpp",
				"src/deep.cpp",
				"src/intercopycontext.cpp",
				"src/keeper.cpp",
				"src/lane.cpp",
				"src/lanes.cpp",
				"src/linda.cpp",
				"src/lindafactory.cpp",
				"src/nameof.cpp",
				"src/state.cpp",
				"src/threading.cpp",
				"src/tools.cpp",
				"src/tracker.cpp",
				"src/universe.cpp"
			},
			incdirs = { "src"},
		},
		lanes = "src/lanes.lua"
	}
}