summaryrefslogtreecommitdiff
path: root/core/src/lcurses/xmake.lua
blob: d01058c5626995540fa3157948b102df81dd17d8 (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(get_config("runtime"))
    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