blob: f80117f10f551b34d20de433bb50e1346c7d61ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
target("lcurses")
set_kind("static")
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_files("lcurses.c")
if is_plat("windows") then
add_options("pdcurses")
set_languages("c89")
else
add_options("curses")
end
|