-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtomlua-scm-1.rockspec
More file actions
47 lines (41 loc) · 872 Bytes
/
tomlua-scm-1.rockspec
File metadata and controls
47 lines (41 loc) · 872 Bytes
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
local _MODREV, _SPECREV = 'scm', '-1'
rockspec_format = '3.0'
package = "tomlua"
version = _MODREV .. _SPECREV
source = {
url = "https://github.com/BirdeeHub/"..package,
}
description = {
summary = "TOML parser for Lua implemented in C",
homepage = "https://github.com/BirdeeHub/"..package,
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "make",
build_variables = {
LUA_INCDIR="$(LUA_INCDIR)",
},
install_variables = {
LIBDIR="$(LIBDIR)",
LUADIR="$(LUADIR)",
},
}
test = {
type = "command",
command = "make test",
}
-- How do I specify CFLAGS -O3 and maybe -flto here?
-- build = {
-- type = "builtin",
-- modules = {
-- tomlua = {
-- "./src/tomlua.c",
-- "./src/decode.c",
-- "./src/encode.c",
-- "./src/dates.c",
-- },
-- }
-- }