diff options
| author | ruki <[email protected]> | 2022-12-14 22:19:20 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-14 22:19:20 +0800 |
| commit | 47add8685e01b60412d63994cbed65f7049ae91a (patch) | |
| tree | cbf213ac8b13271b809542d65cd05d6a491b7605 /core/src/lua-cjson | |
| parent | 4e1325a6699ea3a0aa6cd7568e93c7a3b3ea402a (diff) | |
| parent | 52c919d54bedc52b7b0af560bdb55d36d1668906 (diff) | |
Merge pull request #3172 from xmake-io/xmake.sh
add xmake.sh
Diffstat (limited to 'core/src/lua-cjson')
| -rw-r--r-- | core/src/lua-cjson/xmake.lua | 2 | ||||
| -rwxr-xr-x | core/src/lua-cjson/xmake.sh | 13 |
2 files changed, 14 insertions, 1 deletions
diff --git a/core/src/lua-cjson/xmake.lua b/core/src/lua-cjson/xmake.lua index 75b62c16b..74406d67e 100644 --- a/core/src/lua-cjson/xmake.lua +++ b/core/src/lua-cjson/xmake.lua @@ -1,7 +1,7 @@ target("lua-cjson") set_kind("static") set_warnings("all") - add_deps(get_config("runtime")) + add_deps("lua") if is_plat("windows") then set_languages("c89") end diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh new file mode 100755 index 000000000..6b9e4aad3 --- /dev/null +++ b/core/src/lua-cjson/xmake.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +target "lua_cjson" + set_kind "static" + set_warnings "all" + add_deps "lua" + 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" + |
