summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-07 21:54:53 +0800
committerruki <[email protected]>2019-09-07 21:54:53 +0800
commitf1cb1eb4d5d3e8a603f5e839d8859ab2fa95dfb6 (patch)
treef81a3c702a5f1e978813cfbae3eb4665c93ef04f /xmake/rules/c++/xmake.lua
parent16350d2759319d15c4800e8c2a4184a34ab92171 (diff)
improve rules
Diffstat (limited to 'xmake/rules/c++/xmake.lua')
-rw-r--r--xmake/rules/c++/xmake.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua
index b1263a407..cb5f5b43c 100644
--- a/xmake/rules/c++/xmake.lua
+++ b/xmake/rules/c++/xmake.lua
@@ -28,9 +28,7 @@ rule("c.build.pcheader")
rule("c.build")
set_extensions(".c")
add_deps("c.build.pcheader")
- on_build_files(function (target, sourcebatch, opt)
- import("private.action.build.object")(target, sourcebatch, opt)
- end)
+ on_build_files("private.action.build.object")
-- define rule: c++.build.pcheader
rule("c++.build.pcheader")
@@ -42,9 +40,7 @@ rule("c++.build.pcheader")
rule("c++.build")
set_extensions(".cpp", ".cc", ".cxx")
add_deps("c++.build.pcheader", "c++.build.modules")
- on_build_files(function (target, sourcebatch, opt)
- import("private.action.build.object")(target, sourcebatch, opt)
- end)
+ on_build_files("private.action.build.object")
-- define rule: cpp
rule("c++")