add lcurses and pdcurses

This commit is contained in:
ruki
2018-11-16 23:22:47 +08:00
parent 2623892173
commit ee28663162
71 changed files with 20427 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
-- add target
target("lcurses")
-- make as a static library
set_kind("static")
-- add deps
if is_plat("windows") then
add_deps("pdcurses")
end
-- add the common source files
add_files("lcurses.c")
-- add packages
add_packages("luajit")
-- add links
if is_plat("windows") then
add_defines("PDCURSES")
add_includedirs("../pdcurses")
else
add_links("curses")
end