blob: 5b529622ae4d43df81e49970f1846acccd31cc99 (
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
26
|
target("test")
before_build("iphoneos|arm64", function (target)
assert(val("plat") == "iphoneos")
assert(val("arch") == "arm64")
end)
before_build("macosx", function (target)
assert(vformat("$(plat)") == "macosx")
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(val("plat") == "linux")
end)
|