Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Issue 2123253004: Add support for multi-architecture application bundle on iOS. (Closed)

Created:
4 years, 5 months ago by sdefresne
Modified:
4 years, 5 months ago
Reviewers:
Robert Sesek, brettw
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for multi-architecture application bundle on iOS. Add a new variable "multi_arch_target_cpus" that can be defined by the user via "gn args" to build for more than one architecture. It should be set to a list of two or more architectures supported by gn build. Add support for multi-architectures application to the "ios_app_bundle" template. The template expands to a simple "executable" target if the toolchain is not the default toolchain. For the default toolchain the real executable is generated by assembling all single architecture binaries using "lipo" tool. BUG=603180 Committed: https://crrev.com/dfc9cd81d9edc11b7cd0b0f7a5c26aff06422b9d Cr-Commit-Position: refs/heads/master@{#405110}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add comments to explain how fat-build works. #

Total comments: 4

Patch Set 3 : Use target_out_dir instead of target_gen_dir. #

Patch Set 4 : "regular build" -> "thin build" #

Total comments: 4

Patch Set 5 : Use additional_target_cpus variable instead of multi_arch_target_cpus. #

Total comments: 3

Patch Set 6 : Add comment on how to use additional_target_cpus variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -124 lines) Patch
M build/config/ios/ios_sdk.gni View 1 2 3 4 5 1 chunk +37 lines, -0 lines 0 comments Download
M build/config/ios/rules.gni View 1 2 3 4 2 chunks +288 lines, -124 lines 0 comments Download

Messages

Total messages: 25 (8 generated)
sdefresne
Robert, can you review //build/config/ios/rules.gni this as expert of macOS/iOS build system? Brett, can you ...
4 years, 5 months ago (2016-07-07 11:00:14 UTC) #2
Robert Sesek
I'm having a little trouble following how this works. Could you add some inline documentation ...
4 years, 5 months ago (2016-07-07 17:27:09 UTC) #3
sdefresne
Yes, when multi_architecture_target_cpus is defined, a second list is defined with all the tool gains ...
4 years, 5 months ago (2016-07-07 20:18:22 UTC) #4
sdefresne
Added some comments, please take another look.
4 years, 5 months ago (2016-07-08 09:20:01 UTC) #6
Robert Sesek
LGTM % some comment nits. Thanks for the explanations. https://codereview.chromium.org/2123253004/diff/40001/build/config/ios/rules.gni File build/config/ios/rules.gni (right): https://codereview.chromium.org/2123253004/diff/40001/build/config/ios/rules.gni#newcode124 build/config/ios/rules.gni:124: ...
4 years, 5 months ago (2016-07-08 18:17:54 UTC) #7
sdefresne
Brett: ping ;-)
4 years, 5 months ago (2016-07-09 12:37:37 UTC) #8
sdefresne
https://codereview.chromium.org/2123253004/diff/40001/build/config/ios/rules.gni File build/config/ios/rules.gni (right): https://codereview.chromium.org/2123253004/diff/40001/build/config/ios/rules.gni#newcode124 build/config/ios/rules.gni:124: # For a regular build (i.e. when multi_arch_target_cpus is ...
4 years, 5 months ago (2016-07-11 13:44:38 UTC) #9
brettw
https://codereview.chromium.org/2123253004/diff/80001/build/config/BUILDCONFIG.gn File build/config/BUILDCONFIG.gn (right): https://codereview.chromium.org/2123253004/diff/80001/build/config/BUILDCONFIG.gn#newcode10 build/config/BUILDCONFIG.gn:10: multi_arch_target_cpus = [] [read the next comment first] I'm ...
4 years, 5 months ago (2016-07-11 23:57:17 UTC) #10
sdefresne
Brett: Looks nicer that way, thank you for suggesting not touching build/config/BUILDCONFIG.gn. I guess I ...
4 years, 5 months ago (2016-07-12 09:13:33 UTC) #11
brettw
LGTM, I didn't really look at rules.gni in too much detail. https://codereview.chromium.org/2123253004/diff/120001/build/config/ios/ios_sdk.gni File build/config/ios/ios_sdk.gni (right): ...
4 years, 5 months ago (2016-07-12 20:24:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123253004/140001
4 years, 5 months ago (2016-07-13 08:19:41 UTC) #16
sdefresne
https://codereview.chromium.org/2123253004/diff/120001/build/config/ios/ios_sdk.gni File build/config/ios/ios_sdk.gni (right): https://codereview.chromium.org/2123253004/diff/120001/build/config/ios/ios_sdk.gni#newcode27 build/config/ios/ios_sdk.gni:27: # If non-empty, this list must contain valid cpu ...
4 years, 5 months ago (2016-07-13 08:22:27 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/103003)
4 years, 5 months ago (2016-07-13 09:20:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2123253004/140001
4 years, 5 months ago (2016-07-13 09:24:54 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:140001)
4 years, 5 months ago (2016-07-13 09:54:00 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-13 09:54:02 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-13 09:55:20 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/dfc9cd81d9edc11b7cd0b0f7a5c26aff06422b9d
Cr-Commit-Position: refs/heads/master@{#405110}

Powered by Google App Engine
This is Rietveld 408576698