summaryrefslogtreecommitdiff
path: root/xmake/rules/c++
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-22 22:38:54 +0800
committerruki <[email protected]>2021-02-22 22:38:54 +0800
commit3a579c246f983da7a91bc870a8395a6227ac93c7 (patch)
tree11b74074a26f86e4e6ee20c8fbbe53f48e8a5d20 /xmake/rules/c++
parentf78a823f3cc8f1b1d71bbd8882a1881c99834aa6 (diff)
add manifest rule
Diffstat (limited to 'xmake/rules/c++')
-rw-r--r--xmake/rules/c++/xmake.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/xmake/rules/c++/xmake.lua b/xmake/rules/c++/xmake.lua
index 1b188566a..14dc961d3 100644
--- a/xmake/rules/c++/xmake.lua
+++ b/xmake/rules/c++/xmake.lua
@@ -18,31 +18,26 @@
-- @file xmake.lua
--
--- define rule: c.build.pcheader
rule("c.build.pcheader")
before_build(function (target, opt)
import("private.action.build.pcheader")(target, "c", opt)
end)
--- define rule: c.build
rule("c.build")
set_sourcekinds("cc")
add_deps("c.build.pcheader")
on_build_files("private.action.build.object", {batch = true})
--- 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: c++.build
rule("c++.build")
set_sourcekinds("cxx")
add_deps("c++.build.pcheader", "c++.build.modules")
on_build_files("private.action.build.object", {batch = true})
--- define rule: cpp
rule("c++")
-- add build rules
@@ -66,3 +61,6 @@ rule("c++")
-- check licenses
add_deps("utils.check.licenses")
+
+ -- add platform rules
+ add_deps("platform.windows")