summaryrefslogtreecommitdiff
path: root/xmake/templates/rust/static/project/xmake.lua
blob: cbe81addf9c20b02bd69ebb89d117bacd73a93f2 (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
-- add target
target("interfaces")

    -- set kind
    set_kind("static")

    -- add files
    add_files("src/interfaces.rs")

-- add target
target("${TARGETNAME}_demo")

    -- set kind
    set_kind("binary")

    -- add deps
    add_deps("interfaces")

    -- add files
    add_files("src/main.rs")

    -- add link directory
    add_linkdirs("$(buildir)")

${FAQ}