summaryrefslogtreecommitdiff
path: root/core/src/lcurses/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/lcurses/xmake.lua')
-rw-r--r--core/src/lcurses/xmake.lua20
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")