summaryrefslogtreecommitdiff
path: root/xmake/rules/objc++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-09-01 12:52:36 +0800
committerruki <[email protected]>2019-09-01 12:52:36 +0800
commitd0e1cbfa1f98267c3be7964b2061bb0ee9b16c4c (patch)
tree723ce8f805a2015d72b48a5a5ef1f9a7e2028012 /xmake/rules/objc++/xmake.lua
parent571d0614ff5b16c9e9648f8c3a529e9f3bd82c26 (diff)
add build.pcheader rules
Diffstat (limited to 'xmake/rules/objc++/xmake.lua')
-rw-r--r--xmake/rules/objc++/xmake.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/xmake/rules/objc++/xmake.lua b/xmake/rules/objc++/xmake.lua
index dbd3a80ae..412704bcb 100644
--- a/xmake/rules/objc++/xmake.lua
+++ b/xmake/rules/objc++/xmake.lua
@@ -21,15 +21,17 @@
-- define rule: objc.build
rule("objc.build")
set_extensions(".m")
- on_build_files(function (target, sourcefiles, opt)
- import("private.action.build.object")(target, sourcefiles, opt)
+ add_deps("c.build.pcheader")
+ on_build_files(function (target, sourcebatch, opt)
+ import("private.action.build.object")(target, sourcebatch, opt)
end)
-- define rule: objc++.build
rule("objc++.build")
set_extensions(".mm")
- on_build_files(function (target, sourcefiles, opt)
- import("private.action.build.object")(target, sourcefiles, opt)
+ add_deps("cpp.build.pcheader")
+ on_build_files(function (target, sourcebatch, opt)
+ import("private.action.build.object")(target, sourcebatch, opt)
end)
-- define rule: objc