summaryrefslogtreecommitdiff
path: root/core/src/lua-cjson
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/lua-cjson')
-rwxr-xr-xcore/src/lua-cjson/xmake.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh
new file mode 100755
index 000000000..c39903d35
--- /dev/null
+++ b/core/src/lua-cjson/xmake.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+target "lua_cjson"
+ set_kind "static"
+ set_warnings "all"
+ if is_config "runtime" "luajit"; then
+ add_deps "luajit"
+ 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"
+