1 Star 0 Fork 0

xmake-io/ xmake-core-lua-cjson

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lua-cjson-2.1devel-1.rockspec 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
Mark Pulford 提交于 2012-03-01 20:12 . Bump version to 2.1devel
package = "lua-cjson"
version = "2.1devel-1"
source = {
url = "http://www.kyne.com.au/~mark/software/download/lua-cjson-2.1devel.zip",
}
description = {
summary = "A fast JSON encoding/parsing module",
detailed = [[
The Lua CJSON module provides JSON support for Lua. It features:
- Fast, standards compliant encoding/parsing routines
- Full support for JSON with UTF-8, including decoding surrogate pairs
- Optional run-time support for common exceptions to the JSON specification
(infinity, NaN,..)
- No dependencies on other libraries
]],
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", "fpconv.c" },
defines = {
-- LuaRocks does not support platform specific configuration for Solaris.
-- Uncomment the line below on Solaris platforms if required.
-- "USE_INTERNAL_ISINF"
}
}
},
install = {
lua = {
["cjson.util"] = "lua/cjson/util.lua"
},
bin = {
json2lua = "lua/json2lua.lua",
lua2json = "lua/lua2json.lua"
}
},
-- Override default build options (per platform)
platforms = {
win32 = { modules = { cjson = { defines = {
"DISABLE_INVALID_NUMBERS"
} } } }
},
copy_directories = { "tests" }
}
-- vi:ai et sw=4 ts=4:
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xmake-io/xmake-core-lua-cjson.git
git@gitee.com:xmake-io/xmake-core-lua-cjson.git
xmake-io
xmake-core-lua-cjson
xmake-core-lua-cjson
master

搜索帮助