From e5a9e6fc821d4702c21ab5541323df750d2713cb Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 17 Dec 2022 22:20:52 +0800 Subject: add some options --- core/src/xmake/xmake.sh | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'core/src') diff --git a/core/src/xmake/xmake.sh b/core/src/xmake/xmake.sh index 93ca26cfc..f3e1de128 100755 --- a/core/src/xmake/xmake.sh +++ b/core/src/xmake/xmake.sh @@ -22,6 +22,9 @@ target "xmake" add_deps "lua" fi + # add options + add_options "readline" "curses" "{public}" + # add defines add_defines "__tb_prefix__=\"xmake\"" if is_mode "debug"; then @@ -59,14 +62,3 @@ target "xmake" add_files "winos/*.c" fi - # enable readline - if has_config "readline"; then - add_defines "XM_CONFIG_API_HAVE_READLINE" "{public}" - add_links "readline" "{public}" - fi - - # enable curses - if has_config "curses"; then - add_defines "XM_CONFIG_API_HAVE_CURSES" "{public}" - add_links "curses" "{public}" - fi -- cgit v1.3.1