summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2022-09-15 22:42:24 +0800
committerruki <[email protected]>2022-09-15 22:42:24 +0800
commit95750c8859fef58ab3069871a8d99e68e8c8e55b (patch)
treed037beabcb8ab91b698caad21aa81521d564a1b8 /tests
parent41a4032e6e4110e05c83dfb8385c8871d4cc3507 (diff)
improve to build object
Diffstat (limited to 'tests')
-rw-r--r--tests/apis/rules_order/xmake.lua14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/apis/rules_order/xmake.lua b/tests/apis/rules_order/xmake.lua
index 4d383791c..16d0aaf6c 100644
--- a/tests/apis/rules_order/xmake.lua
+++ b/tests/apis/rules_order/xmake.lua
@@ -6,7 +6,7 @@ rule("markdown")
print("before_build_file: %s", sourcefile)
end)
on_build_file(function (target, sourcefile)
- print("after_build_file: %s", sourcefile)
+ print("on_build_file: %s", sourcefile)
end)
after_build_file(function (target, sourcefile)
print("after_build_file: %s", sourcefile)
@@ -18,7 +18,7 @@ rule("man")
print("before_build_file: %s", sourcefile)
end)
on_build_file(function (target, sourcefile)
- print("after_build_file: %s", sourcefile)
+ print("on_build_file: %s", sourcefile)
end)
after_build_file(function (target, sourcefile)
print("after_build_file: %s", sourcefile)
@@ -30,3 +30,13 @@ target("test")
add_files("src/*.c")
add_files("src/*.md")
add_files("src/*.man")
+ before_build_file(function (target, sourcefile)
+ print("target.before_build_file: %s", sourcefile)
+ end)
+ on_build_file(function (target, sourcefile)
+ print("target.on_build_file: %s", sourcefile)
+ end)
+ after_build_file(function (target, sourcefile)
+ print("target.after_build_file: %s", sourcefile)
+ end)
+