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

    -- add defines
    add_defines("PDC_WIDE")

    -- set languages
    set_languages("c89")