summaryrefslogtreecommitdiff
path: root/core/src/xmake/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-11-30 23:17:56 +0800
committerruki <[email protected]>2022-11-30 23:17:56 +0800
commit6ab4c11e415f5cb5de30f150e21649b48c45a3c8 (patch)
tree7f056b1c3bb331407a1adec4b374683d761f4746 /core/src/xmake/xmake.lua
parent8617fc332b913cc666b9f2afb20b2d61f6a79481 (diff)
rewrite curses
Diffstat (limited to 'core/src/xmake/xmake.lua')
-rw-r--r--core/src/xmake/xmake.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/core/src/xmake/xmake.lua b/core/src/xmake/xmake.lua
index db3971209..1745313fa 100644
--- a/core/src/xmake/xmake.lua
+++ b/core/src/xmake/xmake.lua
@@ -4,11 +4,11 @@ target("xmake")
set_kind("static")
-- add deps
- if has_config("curses") or has_config("pdcurses") then
- add_deps("lcurses")
- end
add_deps("sv", "lua-cjson", "lz4", "tbox")
add_deps(get_config("runtime"))
+ if is_plat("windows") and has_config("pdcurses") then
+ add_deps("pdcurses")
+ end
-- add defines
add_defines("__tb_prefix__=\"xmake\"")
@@ -39,7 +39,13 @@ target("xmake")
-- add options
add_options("readline")
if is_plat("windows") then
- add_defines("UNICODE", "_UNICODE")
+ add_options("pdcurses")
+ else
+ add_options("curses")
end
+ -- add defines
+ if is_plat("windows") then
+ add_defines("UNICODE", "_UNICODE")
+ end