From cdd00fc9212627ff21ddd531145cc02092e1b84b Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 17 Dec 2022 00:17:09 +0800 Subject: hide options --- core/src/tbox/xmake.sh | 10 ++++++++++ core/xmake.sh | 2 -- 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 -- cgit v1.3.1