summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-16 00:25:51 +0800
committerruki <[email protected]>2022-12-16 00:25:51 +0800
commit0021ae25c8d87c986ae55689519463b34121b77c (patch)
tree74b859a2bbee1e6d4c2bad39ae4f025926eff684 /core/src
parent8f3c6de1990dbf2db07e4c4d6b43214ddea7ec92 (diff)
improve install for xmake.sh
Diffstat (limited to 'core/src')
-rwxr-xr-xcore/src/lua-cjson/xmake.sh1
-rwxr-xr-xcore/src/lua/xmake.sh1
-rwxr-xr-xcore/src/luajit/xmake.sh1
-rwxr-xr-xcore/src/lz4/xmake.sh1
-rwxr-xr-xcore/src/sv/xmake.sh3
-rwxr-xr-xcore/src/tbox/xmake.sh11
-rwxr-xr-xcore/src/xmake/xmake.sh1
7 files changed, 13 insertions, 6 deletions
diff --git a/core/src/lua-cjson/xmake.sh b/core/src/lua-cjson/xmake.sh
index 6b9e4aad3..7ee38cc10 100755
--- a/core/src/lua-cjson/xmake.sh
+++ b/core/src/lua-cjson/xmake.sh
@@ -2,6 +2,7 @@
target "lua_cjson"
set_kind "static"
+ set_default false
set_warnings "all"
add_deps "lua"
add_files "lua-cjson/dtoa.c"
diff --git a/core/src/lua/xmake.sh b/core/src/lua/xmake.sh
index f9e190c16..f34dd53f2 100755
--- a/core/src/lua/xmake.sh
+++ b/core/src/lua/xmake.sh
@@ -2,6 +2,7 @@
target "lua"
set_kind "static"
+ set_default false
set_warnings "all"
# add include directories
diff --git a/core/src/luajit/xmake.sh b/core/src/luajit/xmake.sh
index e9a4222b0..459da8999 100755
--- a/core/src/luajit/xmake.sh
+++ b/core/src/luajit/xmake.sh
@@ -32,6 +32,7 @@ jit_autogendir="luajit/autogen/${jit_plat}/${jit_dir}/${jit_arch}"
target "lua"
set_kind "static"
+ set_default false
set_warnings "all"
# add include directories
diff --git a/core/src/lz4/xmake.sh b/core/src/lz4/xmake.sh
index 4b04f0a1d..e4cfca19a 100755
--- a/core/src/lz4/xmake.sh
+++ b/core/src/lz4/xmake.sh
@@ -2,6 +2,7 @@
target "lz4"
set_kind "static"
+ set_default false
set_warnings "all"
add_includedirs "lz4/lib" "{public}"
add_files "lz4/lib/lz4.c"
diff --git a/core/src/sv/xmake.sh b/core/src/sv/xmake.sh
index a89d277e9..261bd3e83 100755
--- a/core/src/sv/xmake.sh
+++ b/core/src/sv/xmake.sh
@@ -1,8 +1,9 @@
#!/bin/sh
target "sv"
- set_languages "c99"
set_kind "static"
+ set_default false
+ set_languages "c99"
add_includedirs "sv/include" "{public}"
add_files "sv/src/*.c"
diff --git a/core/src/tbox/xmake.sh b/core/src/tbox/xmake.sh
index 76d3ef61a..ae0b61016 100755
--- a/core/src/tbox/xmake.sh
+++ b/core/src/tbox/xmake.sh
@@ -7,9 +7,10 @@ set_config "float" true
set_config "demo" false
includes "tbox/src"
-target_end
-set_configvar "TB_CONFIG_MODULE_HAVE_HASH" 1
-set_configvar "TB_CONFIG_MODULE_HAVE_CHARSET" 1
-set_configvar "TB_CONFIG_FORCE_UTF8" 1
-set_configvar "TB_CONFIG_TYPE_HAVE_FLOAT" 1
+target "tbox"
+ set_default false
+ set_configvar "TB_CONFIG_MODULE_HAVE_HASH" 1
+ set_configvar "TB_CONFIG_MODULE_HAVE_CHARSET" 1
+ set_configvar "TB_CONFIG_FORCE_UTF8" 1
+ set_configvar "TB_CONFIG_TYPE_HAVE_FLOAT" 1
diff --git a/core/src/xmake/xmake.sh b/core/src/xmake/xmake.sh
index 29cb102ba..983dc95ea 100755
--- a/core/src/xmake/xmake.sh
+++ b/core/src/xmake/xmake.sh
@@ -2,6 +2,7 @@
target "xmake"
set_kind "static"
+ set_default false
# add deps
add_deps "sv" "lua_cjson" "lua" "lz4" "tbox"