From e88fec9971eae101529deb7b2bcd58b2284c5e41 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 13 Nov 2020 23:56:09 +0800 Subject: add macapp with framework --- xmake/rules/xcode/application/load.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xmake/rules/xcode/application/load.lua') 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 -- cgit v1.3.1