summaryrefslogtreecommitdiff
path: root/core/src/xmake/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-19 23:36:22 +0800
committerruki <[email protected]>2023-01-19 23:36:22 +0800
commitb653884db6a9403f3ec8306f49420c5c4f1c660c (patch)
treeadac630dc10897ec60bc90ed28dc6c58570b3052 /core/src/xmake/xmake.lua
parent685000fcb6d6eed642e3b56b345dc25caec999c4 (diff)
improve lua-cjson option
Diffstat (limited to 'core/src/xmake/xmake.lua')
-rw-r--r--core/src/xmake/xmake.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua
index d770c129f..d4e11040e 100644
--- a/core/src/xmake/xmake.lua
+++ b/core/src/xmake/xmake.lua
@@ -2,12 +2,15 @@ target("xmake")
set_kind("static")
-- add deps
- add_deps("sv", "lua-cjson", "lz4", "tbox")
+ add_deps("sv", "lz4", "tbox")
if is_config("runtime", "luajit") then
add_deps("luajit")
else
add_deps("lua")
end
+ if has_config("lua_cjson") then
+ add_deps("lua-cjson")
+ end
if is_plat("windows") and has_config("pdcurses") then
add_deps("pdcurses")
end