blob: a60fd88b8cfb0c93e39eedb350ee0083174b5c05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
-- add target
target("lcurses")
-- make as a static library
set_kind("static")
-- add deps
add_deps("luajit")
if is_plat("windows") then
add_deps("pdcurses")
end
-- set the object files directory
set_objectdir("$(buildir)/.objs")
-- add includes directory
add_includedirs("$(buildir)/luajit")
-- add the common source files
add_files("lcurses.c")
-- add options
if is_plat("windows") then
add_defines("PDCURSES", "XM_CONFIG_API_HAVE_CURSES")
add_includedirs("../pdcurses")
else
add_options("curses")
end
|