summaryrefslogtreecommitdiff
path: root/xmake/rules/xcode/application
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-13 23:56:09 +0800
committerruki <[email protected]>2020-11-13 23:56:09 +0800
commite88fec9971eae101529deb7b2bcd58b2284c5e41 (patch)
treecffefaf5a82df858974bf1e53613c10c1a8e975c /xmake/rules/xcode/application
parentdc9d1b09583397e37f353f2d8bb6fe45bf5dfbed (diff)
add macapp with framework
Diffstat (limited to 'xmake/rules/xcode/application')
-rw-r--r--xmake/rules/xcode/application/load.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmake/rules/xcode/application/load.lua b/xmake/rules/xcode/application/load.lua
index cb90a6c83..e4f76191e 100644
--- a/xmake/rules/xcode/application/load.lua
+++ b/xmake/rules/xcode/application/load.lua
@@ -54,4 +54,15 @@ function main (target)
-- register clean files for `xmake clean`
target:add("cleanfiles", bundledir)
+
+ -- depend xcode.framework? we need disable `build.across_targets_in_parallel` policy
+ 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