diff options
| author | ruki <[email protected]> | 2019-09-01 12:52:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-01 12:52:36 +0800 |
| commit | d0e1cbfa1f98267c3be7964b2061bb0ee9b16c4c (patch) | |
| tree | 723ce8f805a2015d72b48a5a5ef1f9a7e2028012 /xmake/rules/objc++/xmake.lua | |
| parent | 571d0614ff5b16c9e9648f8c3a529e9f3bd82c26 (diff) | |
add build.pcheader rules
Diffstat (limited to 'xmake/rules/objc++/xmake.lua')
| -rw-r--r-- | xmake/rules/objc++/xmake.lua | 10 |
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 |
