summaryrefslogtreecommitdiff
path: root/core/src/lcurses/xmake.lua
blob: 5bf8d3140dccd353367f24542e3267894fa47ce3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

    -- suppress error: ld: archive has no table of contents file liblcurses.a
    if is_plat("iphoneos", "macosx") then
        add_arflags("-s", {force = true})
    end