iOS bundles need to include the iPhoneSimulator and iPhoneOS SDKs. The former is
4GB alone, and the latter is another 400MB. By selectively cutting out some of the
largest unused directories the compressed file can be reduced to under 2GB.
It would be possible to reduce further (cherry picking out unused frameworks and
fonts for example) but that would run the risk of creating a less stable bundle that
needs more maintenance between Xcode revisions.
For now, keep it simple by only pruning the biggest offenders.
BUG=669094
Review-Url: https://codereview.chromium.org/2537343005
Cr-Original-Commit-Position: refs/heads/master@{#435355}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: aa615f0788de433dc70c6e82f4911418f854be31
The following two scripts allow for the update and roll of the mac
toolchain (Xcode) via DEPS instead of thru an infrastructure install
script. The upload / download nature of the script follows somewhat
what Windows does with visual studio files and what Mac already does
for clang rolls.
build/package_mac_toolchain.py takes an Xcode.app directory
and packages up what the parts the Mac build uses into a tar file
and uploads it to gs://chrome-mac-sdk/
build/mac_toolchain.py runs as part of hooks, downloads
and decompresses the mac toolchain, and points system files to this
new directory with the DEVELOPER_DIR environment variable.
Setting DEVELOPER_DIR throughout gyp-ninja requires this GYP CL:
https://codereview.chromium.org/1806733002/
BUG=474373
Review URL: https://codereview.chromium.org/1759793003
Cr-Original-Commit-Position: refs/heads/master@{#383461}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: 6a03a3dc9196b4474e7f5c08803f076a95055b44