summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-09-15 00:41:47 +0800
committerruki <[email protected]>2021-09-15 00:41:47 +0800
commitebe9e105b9ddb55d928c647ce0d15da9bd19c5c5 (patch)
tree90505c32cef0b7e024e1a8fe16d24e1dca7feaf7 /xmake/rules/xcode/application/xmake.lua
parent3abbb1c004c0c56bf34c9155098e1844e0483581 (diff)
improve xcode.application rule
Diffstat (limited to 'xmake/rules/xcode/application/xmake.lua')
-rw-r--r--xmake/rules/xcode/application/xmake.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/xmake/rules/xcode/application/xmake.lua b/xmake/rules/xcode/application/xmake.lua
index 7d5edc668..d328262c0 100644
--- a/xmake/rules/xcode/application/xmake.lua
+++ b/xmake/rules/xcode/application/xmake.lua
@@ -27,6 +27,19 @@ rule("xcode.application")
-- we must set kind before target.on_load(), may we will use target in on_load()
on_load("load")
+ -- depend xcode.framework? we need disable `build.across_targets_in_parallel` policy
+ after_load(function (target)
+ local across_targets_in_parallel
+ for _, dep in ipairs(target:orderdeps()) do
+ if dep:rule("xcode.framework") then
+ across_targets_in_parallel = false
+ end
+ end
+ if across_targets_in_parallel ~= nil then
+ target:set("policy", "build.across_targets_in_parallel", across_targets_in_parallel)
+ end
+ end)
+
-- build *.app
after_build("build")