summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2022-12-17 22:20:52 +0800
committerruki <[email protected]>2022-12-17 22:20:52 +0800
commite5a9e6fc821d4702c21ab5541323df750d2713cb (patch)
tree8c35f129a8808596139328427f1d4aaae343b11f /core/src
parent807c83c68af2d65974ff99fbf8e994112c63b0bc (diff)
add some options
Diffstat (limited to 'core/src')
-rwxr-xr-xcore/src/xmake/xmake.sh14
1 files changed, 3 insertions, 11 deletions
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