diff options
| author | ruki <[email protected]> | 2020-07-17 16:02:19 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-07-17 16:02:19 +0800 |
| commit | f9a4493f60eeb9078c00a112734d8caa7e29604e (patch) | |
| tree | 9fd76a4b3ee0fea7eaa28dbf0df3976c3db36b34 /core/src/lua-cjson/xmake.lua | |
| parent | c3dd85b98492c012fc4eb1b46fac824051a1b92a (diff) | |
| parent | 6b3cf4e5239f3f041501d0d8ee32471f33010708 (diff) | |
Merge pull request #894 from xmake-io/json
Add Json Support
Diffstat (limited to 'core/src/lua-cjson/xmake.lua')
| -rw-r--r-- | core/src/lua-cjson/xmake.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/src/lua-cjson/xmake.lua b/core/src/lua-cjson/xmake.lua new file mode 100644 index 000000000..b25640cae --- /dev/null +++ b/core/src/lua-cjson/xmake.lua @@ -0,0 +1,16 @@ +target("lua-cjson") + set_kind("static") + set_warnings("all") + add_deps("luajit") + if is_plat("windows") then + set_languages("c89") + end + add_files("lua-cjson/*.c|fpconv.c") + -- Use internal strtod() / g_fmt() code for performance and disable multi-thread + add_defines("NDEBUG", "USE_INTERNAL_FPCONV") + if is_plat("windows") then + -- Windows sprintf()/strtod() handle NaN/inf differently. Not supported. + add_defines("DISABLE_INVALID_NUMBERS") + add_defines("inline=__inline") + end + |
