diff options
| author | ruki <[email protected]> | 2019-09-06 00:13:31 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-09-05 19:21:07 +0800 |
| commit | 5f3ad152caf5509dd6e8a8249872c8969be1d49f (patch) | |
| tree | 7bf28a9ce47129605e7b7c52e90e284106adad89 /xmake/rules/c++/xmake.lua | |
| parent | a8061f2bed770641ea7137e6211aea50bbe6abd9 (diff) | |
add cppmodule rules and tests
Diffstat (limited to 'xmake/rules/c++/xmake.lua')
| -rw-r--r-- | xmake/rules/c++/xmake.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua index 1330fbfca..32bd19f5b 100644 --- a/xmake/rules/c++/xmake.lua +++ b/xmake/rules/c++/xmake.lua @@ -32,20 +32,20 @@ rule("c.build") import("private.action.build.object")(target, sourcebatch, opt) end) --- define rule: cpp.build.pcheader -rule("cpp.build.pcheader") +-- define rule: c++.build.pcheader +rule("c++.build.pcheader") before_build(function (target, opt) import("private.action.build.pcheader")(target, "cxx", opt) end) --- define rule: cpp.build -rule("cpp.build") +-- define rule: c++.build +rule("c++.build") set_extensions(".cpp", ".cc", ".cxx") - add_deps("cpp.build.pcheader") + add_deps("c++.build.pcheader") on_build_files(function (target, sourcebatch, opt) import("private.action.build.object")(target, sourcebatch, opt) end) -- define rule: cpp -rule("cpp") - add_deps("cpp.build", "c.build", "utils.merge.object", "utils.merge.archive") +rule("c++") + add_deps("c++.build", "c.build", "utils.merge.object", "utils.merge.archive") |
