summaryrefslogtreecommitdiff
path: root/xmake/templates/c/tbox.static/project/src/_library/xmake.lua
blob: 782c9261608821553c211f2d000a66af91931660 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
-- add target
target("${TARGETNAME}")

    -- set kind
    set_kind("static")

    -- add definitions
    add_defines("__tb_prefix__=\"${TARGETNAME}\"")

    -- add the header files for installing
    add_headerfiles("../(${TARGETNAME}/**.h)")

    -- add includes directory
    add_includedirs("..", {interface = true})

    -- add packages
    add_packages("tbox")

    -- add files
    add_files("*.c")