From 93b9a4a17898f515dfa33fe87da72090f091d00c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 14 Dec 2022 22:51:07 +0800 Subject: add lua and lua-cjson in xmake.sh --- core/src/lua-cjson/xmake.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 core/src/lua-cjson/xmake.sh (limited to 'core/src/lua-cjson') 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" + -- cgit v1.3.1