blob: d0052368c5871aed9beb44b1d5041cf8d0c42157 (
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
27
28
29
30
31
32
33
34
35
36
37
|
target("test")
before_build("iphoneos|arm64", "macosx", function (target)
assert(target:is_plat("macosx") or (target:is_plat("iphoneos") and target:is_arch("arm64")))
end)
before_build(function (target)
print("before_build")
end)
on_build("macosx|native", function (target)
print("build macosx:native")
end)
on_build(function (target)
print("build")
end)
after_build(function (target)
print("after_build")
end)
after_build("!macosx", function (target)
print("after_build !macosx")
end)
after_build("!linux", function (target)
print("after_build !linux")
end)
after_build("!iphoneos", function (target)
print("after_build !iphoneos")
end)
after_build("linux|*", function (target)
assert(target:is_plat("linux"))
end)
|