diff options
| author | ruki <[email protected]> | 2023-01-19 23:16:04 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-19 23:16:04 +0800 |
| commit | 216be81132314c11d960fc998f2919345f3a7630 (patch) | |
| tree | fc4b312ed93fa89df63da6499f89ad3caea5d66e /core/src | |
| parent | 802ddfa09619d26f4446c046c365545684ff5fb4 (diff) | |
improve xmake.sh
Diffstat (limited to 'core/src')
| -rwxr-xr-x | core/src/xmake/xmake.sh | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/core/src/xmake/xmake.sh b/core/src/xmake/xmake.sh index be0f6f911..59ec6b503 100755 --- a/core/src/xmake/xmake.sh +++ b/core/src/xmake/xmake.sh @@ -13,23 +13,26 @@ target "xmake" add_deps "$lib" fi done - if is_config "runtime" "luajit" && has_config "luajit"; then + if is_config "runtime" "luajit"; then if has_config "lua_cjson"; then add_options "lua_cjson" "{public}" else add_deps "lua_cjson" fi - add_options "luajit" "{public}" - elif has_config "lua"; then - if ! has_config "lua_cjson"; then - add_deps "lua_cjson" + if has_config "luajit"; then + add_options "luajit" "{public}" + else + add_deps "luajit" fi - add_options "lua" "{public}" else if ! has_config "lua_cjson"; then add_deps "lua_cjson" fi - add_deps "lua" + if has_config "lua"; then + add_options "lua" "{public}" + else + add_deps "lua" + fi fi # add options |
