summaryrefslogtreecommitdiff
path: root/xmake/rules/objc++/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/objc++/xmake.lua
parent16350d2759319d15c4800e8c2a4184a34ab92171 (diff)
improve rules
Diffstat (limited to 'xmake/rules/objc++/xmake.lua')
-rw-r--r--xmake/rules/objc++/xmake.lua8
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua
index e666d8b38..7356cf36d 100644
--- a/xmake/rules/objc++/xmake.lua
+++ b/xmake/rules/objc++/xmake.lua
@@ -22,17 +22,13 @@
rule("objc.build")
set_extensions(".m")
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: objc++.build
rule("objc++.build")
set_extensions(".mm")
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: objc
rule("objc++")