blob: 11ffc219d664a68015bd5a3957770412689654da (
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
|
-- add target
target("pdcurses")
-- enable this target
if not has_config("pdcurses") then
set_default(false)
end
-- make as a static library
set_kind("static")
-- add includes directory
add_includedirs("pdcurses", {public = true})
-- add the common source files
add_files("pdcurses/pdcurses/*.c", "pdcurses/wincon/*.c")
-- add definitions
add_defines("PDC_WIDE")
-- set languages
set_languages("c89")
-- unset warnings
set_warnings("none")
|