summaryrefslogtreecommitdiff
path: root/xmake/templates/c/tbox.static/template.lua
blob: 21c09ec3c5fa7cdfabb7da2a126911a8f0e5f1da (plain)
1
2
3
4
5
6
7
8
9
template("tbox.static")
    add_configfiles("xmake.lua")
    add_configfiles("src/_demo/main.c")
    add_configfiles("src/_demo/xmake.lua")
    add_configfiles("src/_library/xmake.lua")
    after_create(function (template, opt)
        os.mv("src/_library", path.join("src", opt.targetname))
        os.mv("src/_demo", path.join("src", opt.targetname .. "_demo"))
    end)