aboutsummaryrefslogtreecommitdiff
path: root/lua-cjson-1.0.3-1.rockspec
blob: 28514e1dc7605155d49f3cb14f22ff20ba2749c3 (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
package = "lua-cjson"
version = "1.0.3-1"

source = {
    url = "http://www.kyne.com.au/~mark/software/lua-cjson-1.0.3.zip",
}

description = {
    summary = "Fast JSON encoding/parsing support for Lua",
    detailed = [[
        Lua CJSON provides fast UTF-8 JSON parsing/encoding support for Lua,
        and has no external dependencies.
    ]],
    homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php",
    license = "MIT"
}

dependencies = {
    "lua >= 5.1"
}

build = {
    type = "builtin",
    modules = {
        cjson = {
            sources = { "lua_cjson.c", "strbuf.c" },
-- Optional workarounds:
-- USE_POSIX_USELOCALE: Linux, OSX. Thread safe. Recommended.
-- USE_POSIX_SETLOCALE: Works on all ANSI C platforms. May be used when
--                      thread-safety isn't required.
-- USE_INTERNAL_ISINF: Provide internal isinf() implementation. Required
--                     on some Solaris platforms.
            defines = { "VERSION=\"1.0.3\"", "USE_POSIX_SETLOCALE" }
        }
    },
    copy_directories = { "tests" }
}