diff options
| author | ruki <[email protected]> | 2021-02-27 13:49:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-02-27 13:49:29 +0800 |
| commit | 06d15cea2ee275a82a4630147dc6aa9a33bbaf53 (patch) | |
| tree | 3fe36e57f14364dee6b34c6eb7bcd2fd3b9af7ac /core/src/lcurses/xmake.lua | |
| parent | 1cef4b3d84413c1d9155c5152d7c709f655b4067 (diff) | |
fix core/xmake.lua
Diffstat (limited to 'core/src/lcurses/xmake.lua')
| -rw-r--r-- | core/src/lcurses/xmake.lua | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/core/src/lcurses/xmake.lua b/core/src/lcurses/xmake.lua index 9588518be..f80117f10 100644 --- a/core/src/lcurses/xmake.lua +++ b/core/src/lcurses/xmake.lua @@ -1,25 +1,15 @@ --- add target target("lcurses") - - -- enable this target? - if not has_config("curses") and not has_config("pdcurses") then - set_default(false) - end - - -- make as a static library set_kind("static") - - -- add deps add_deps("luajit") if is_plat("windows") and has_config("pdcurses") then add_deps("pdcurses") + add_defines("XM_CONFIG_API_HAVE_CURSES", {public = true}) + elseif has_config("curses") then + add_defines("XM_CONFIG_API_HAVE_CURSES", {public = true}) + else + set_default(false) end - - -- add the common source files add_files("lcurses.c") - add_defines("XM_CONFIG_API_HAVE_CURSES", {public = true}) - - -- add options if is_plat("windows") then add_options("pdcurses") set_languages("c89") |
