summaryrefslogtreecommitdiff
path: root/xmake/templates/dlang/static/project/xmake.lua
blob: 281c63734ed2104fe658e046f270c7bda713f2e0 (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 modes: debug and release
add_rules("mode.debug", "mode.release")

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

    -- set kind
    set_kind("static")

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

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

    -- set kind
    set_kind("binary")

    -- add deps
    add_deps("${TARGETNAME}")

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

${FAQ}