forked from mpx/lua-cjson
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlua-cjson-local-1.rockspec
More file actions
47 lines (42 loc) · 1.09 KB
/
lua-cjson-local-1.rockspec
File metadata and controls
47 lines (42 loc) · 1.09 KB
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
package = "lua-cjson"
version = "local-1"
source = {
url = ".",
}
description = {
summary = "A fast JSON encoding/parsing module (local build with enhancements)",
detailed = [[
Enhanced version of Lua CJSON with:
- TurboWarp JSON extensions (Infinity, NaN, -Infinity)
- JSON object key order tracking via __keyOrder metatable
- null as nil option for better Lua compatibility
- 4-9x faster than pure Lua implementation
]],
homepage = "http://www.kyne.au/~mark/software/lua-cjson.php",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "builtin",
modules = {
cjson = {
sources = { "lua_cjson.c", "strbuf.c", "fpconv.c" },
defines = {
-- Optional platform-specific defines
}
}
},
install = {
lua = {
["cjson.util"] = "lua/cjson/util.lua"
},
bin = {
json2lua = "lua/json2lua.lua",
lua2json = "lua/lua2json.lua"
}
},
copy_directories = { "tests" }
}
-- vi:ai et sw=4 ts=4: