summaryrefslogtreecommitdiff
path: root/xmake/repository/templates/dlang/shared/xmake.lua
blob: 0086bebae2a685b6be5271f80456247f669ec527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
add_rules("mode.debug", "mode.release")

target("${TARGET_NAME}")
    set_kind("shared")
    add_files("src/interfaces.d")
    add_includedirs("src", {public = true})
    add_rules("utils.symbols.export_list", {symbols = {
      "add",
      "sub"}})

target("${TARGET_NAME}_demo")
    set_kind("binary")
    add_deps("${TARGET_NAME}")
    add_files("src/main.d")

${FAQ}