summaryrefslogtreecommitdiff
path: root/tests/apis/xxx_script/xmake.lua
blob: c3acce0aba4be7d43fa2a98d2038efa373da5458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
target("test")

    before_build("iphoneos|arm64", "macosx", function (target)
        assert(is_plat("macosx") or (is_plat("iphoneos") and is_arch("arm64")))
    end)

    before_build(function (target)
        print("before_build")
    end)

    on_build(function (target)
        print("build")
    end)

    after_build(function (target)
        print("after_build")
    end)

    after_build("linux|*", function (target)
        assert(is_plat("linux"))
    end)