blob: 134173051f0d594d0991fa581a3de32fde85c356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
target "lua_cjson"
set_kind "static"
set_default false
set_warnings "all"
if is_config "runtime" "luajit" && has_config "luajit"; then
add_options "luajit" "{public}"
elif has_config "lua"; then
add_options "lua" "{public}"
else
add_deps "lua"
fi
add_files "lua-cjson/dtoa.c"
add_files "lua-cjson/lua_cjson.c"
add_files "lua-cjson/strbuf.c"
add_files "lua-cjson/g_fmt.c"
# Use internal strtod() / g_fmt() code for performance and disable multi-thread
add_defines "NDEBUG" "USE_INTERNAL_FPCONV"
|