-
Notifications
You must be signed in to change notification settings - Fork 4
/
luahs-dev-1.rockspec
79 lines (75 loc) · 1.9 KB
/
luahs-dev-1.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
-- luahs, Lua bindings to hyperscan
-- Copyright (C) 2016 Boris Nagaev
-- See the LICENSE file for terms of use.
package = "luahs"
version = "dev-1"
source = {
url = "git://github.com/starius/luahs.git",
}
description = {
summary = "Lua bindings to hyperscan",
homepage = "https://github.com/starius/luahs",
license = "BSD 3-clause",
detailed = [[
Lua bindings to hyperscan.
Hyperscan is high-performanceregular expression matching library.
]],
}
dependencies = {
"lua >= 5.1",
"argparse",
}
external_dependencies = {
HS = {
header = "hs/hs.h",
library = "hs",
},
}
local platforms_modules = {
['luahs'] = {
libraries = {"hs", "stdc++", "m"},
},
}
build = {
type = "builtin",
modules = {
['luahs'] = {
sources = {
"src/luahs/constants.c",
"src/luahs/util.c",
"src/luahs/compile.c",
"src/luahs/database.c",
"src/luahs/scratch.c",
"src/luahs/stream.c",
"src/luahs/scan.c",
"src/luahs/luahs.c",
},
incdirs = {"$(HS_INCDIR)"},
libdirs = {"$(HS_LIBDIR)"},
libraries = {"hs"},
},
['luahs_runtime'] = {
sources = {
"src/luahs/constants.c",
"src/luahs/util.c",
"src/luahs/database.c",
"src/luahs/scratch.c",
"src/luahs/stream.c",
"src/luahs/scan.c",
"src/luahs/luahs.c",
},
incdirs = {"$(HS_INCDIR)"},
libdirs = {"$(HS_LIBDIR)"},
defines = {"LUAHS_RUNTIME"},
libraries = {"hs_runtime"},
},
},
platforms = {
unix = {
modules = platforms_modules,
},
mingw32 = {
modules = platforms_modules,
},
},
}