summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-17 00:17:09 +0800
committerruki <[email protected]>2022-12-17 00:17:09 +0800
commitcdd00fc9212627ff21ddd531145cc02092e1b84b (patch)
tree7131b54f7893e2935912ef9614481db63bf85f7d
parent101230c6f06cc46f9d40f1ef4dd35b492e17f73c (diff)
hide options
-rwxr-xr-xcore/src/tbox/xmake.sh10
-rwxr-xr-xcore/xmake.sh2
2 files changed, 10 insertions, 2 deletions
diff --git a/core/src/tbox/xmake.sh b/core/src/tbox/xmake.sh
index ae0b61016..ed5d59d2a 100755
--- a/core/src/tbox/xmake.sh
+++ b/core/src/tbox/xmake.sh
@@ -8,6 +8,16 @@ set_config "demo" false
includes "tbox/src"
+hide_options() {
+ local name=""
+ local options="demo small micro float info exception deprecated force_utf8 xml zip hash regex object charset database coroutine"
+ for name in $options; do
+ option "${name}"
+ set_showmenu false
+ done
+}
+hide_options
+
target "tbox"
set_default false
set_configvar "TB_CONFIG_MODULE_HAVE_HASH" 1
diff --git a/core/xmake.sh b/core/xmake.sh
index 2cb211e58..21c7db319 100755
--- a/core/xmake.sh
+++ b/core/xmake.sh
@@ -32,14 +32,12 @@ option "runtime" "Use luajit or lua runtime" "lua"
# the readline option
option "readline"
- set_description "Enable or disable readline library"
add_links "readline"
add_cincludes "readline/readline.h"
add_cfuncs "readline"
# the curses option
option "curses"
- set_description "Enable or disable curses library"
add_links "curses"
add_cincludes "curses.h"
option_end