diff options
| author | ruki <[email protected]> | 2020-11-13 23:56:09 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-11-13 23:56:09 +0800 |
| commit | e88fec9971eae101529deb7b2bcd58b2284c5e41 (patch) | |
| tree | cffefaf5a82df858974bf1e53613c10c1a8e975c /xmake/rules/xcode/application/load.lua | |
| parent | dc9d1b09583397e37f353f2d8bb6fe45bf5dfbed (diff) | |
add macapp with framework
Diffstat (limited to 'xmake/rules/xcode/application/load.lua')
| -rw-r--r-- | xmake/rules/xcode/application/load.lua | 11 |
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 |
