summaryrefslogtreecommitdiff
path: root/core/pkg/tbox.pkg/xmake.lua
blob: b946b73b2b07e9d190a68508c2541c85111bfb32 (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
29
30
 
-- the tbox package
option("tbox")

    -- show menu
    set_showmenu(true)

    -- set category
    set_category("package")

    -- set description
    set_description("The tbox package")

    -- set language: c99, c++11
    set_languages("c99", "cxx11")

    -- add defines to config.h if checking ok
    add_defines_h_if_ok("$(prefix)_PACKAGE_HAVE_TBOX")

    -- add links for checking
    add_links("tbox")

    -- add link directories
    add_linkdirs("lib/$(mode)/$(plat)/$(arch)")

    -- add c includes for checking
    add_cincludes("tbox/tbox.h")

    -- add include directories
    add_includedirs("inc/$(plat)", "inc")