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.sh20
1 files changed, 12 insertions, 8 deletions
diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh
index f3ab17546..76650cf3f 100755
--- a/core/src/lua-cjson/xmake.sh
+++ b/core/src/lua-cjson/xmake.sh
@@ -4,16 +4,20 @@ target "lua_cjson"
set_kind "static"
set_default false
set_warnings "all"
- if is_config "runtime" "luajit"; then
- if has_config "luajit"; then
- add_options "luajit" "{public}"
- elif ! has_config "external"; then
- add_deps "luajit"
+ if has_config "external"; then
+ if is_config "runtime" "luajit"; then
+ if has_config "luajit"; then
+ add_options "luajit" "{public}"
+ fi
+ else
+ if has_config "lua"; then
+ add_options "lua" "{public}"
+ fi
fi
else
- if has_config "lua"; then
- add_options "lua" "{public}"
- elif ! has_config "external"; then
+ if is_config "runtime" "luajit"; then
+ add_deps "luajit"
+ else
add_deps "lua"
fi
fi