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

Issue 2115583002: GN Rule to build Cronet Dynamic Framework for iOS. (Closed)

Created:
4 years, 5 months ago by mef
Modified:
4 years, 5 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

GN Rule to build Cronet Dynamic Framework for iOS. For release builds set gn args enable_dsyms = true and enable_stripping = true to separate symbols from the framework binary. Added components/cronet/tools/package_ios.py option --gn to use gn instead of gyp to build cronet_package target. Committed: https://crrev.com/941bc7e523e5502a6d2211d0c0837504e0bfc5dd Cr-Commit-Position: refs/heads/master@{#405768}

Patch Set 1 #

Patch Set 2 : Generate dSYM #

Patch Set 3 : Tweak Info.plist #

Patch Set 4 : Format. #

Patch Set 5 : Self Review. #

Total comments: 16

Patch Set 6 : Don't use @loader_path. #

Total comments: 4

Patch Set 7 : Follow Sylvain's suggestions. #

Patch Set 8 : Use enable_dsyms and enable_stripping gn args instead of is_debug check. #

Patch Set 9 : Add missing import. #

Patch Set 10 : Updated package_ios.py script to use gn to build Cronet frameworks. #

Patch Set 11 : Fix the case. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -7 lines) Patch
M components/cronet/ios/BUILD.gn View 1 2 3 4 5 6 7 8 9 4 chunks +35 lines, -4 lines 5 comments Download
M components/cronet/tools/package_ios.py View 1 2 3 4 5 6 7 8 9 10 2 chunks +69 lines, -3 lines 0 comments Download

Messages

Total messages: 31 (6 generated)
mef
PTAL, cronet_framework target in this BUILD.gn appears to produce the Cronet.framework output matching the same ...
4 years, 5 months ago (2016-06-30 21:29:06 UTC) #2
Robert Sesek
https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode67 components/cronet/ios/BUILD.gn:67: output_name = "$root_out_dir/Cronet.framework/Info.plist" On 2016/06/30 21:29:06, mef wrote: > ...
4 years, 5 months ago (2016-06-30 21:43:15 UTC) #3
kapishnikov
https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode60 components/cronet/ios/BUILD.gn:60: args = [ "--bundle_id=CRNT" ] Usually bundle id has ...
4 years, 5 months ago (2016-06-30 21:59:55 UTC) #4
sdefresne
https://codereview.chromium.org/2115583002/diff/100001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/100001/components/cronet/ios/BUILD.gn#newcode60 components/cronet/ios/BUILD.gn:60: args = [ "--bundle_id=CRNT" ] The "Info.plist" file already ...
4 years, 5 months ago (2016-07-01 12:50:11 UTC) #5
mef
Thanks for your comments! https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode60 components/cronet/ios/BUILD.gn:60: args = [ "--bundle_id=CRNT" ] ...
4 years, 5 months ago (2016-07-01 14:10:08 UTC) #6
Robert Sesek
https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode102 components/cronet/ios/BUILD.gn:102: ldflags += [ "-Wcrl,dsym," + rebase_path(root_out_dir) ] On 2016/07/01 ...
4 years, 5 months ago (2016-07-01 15:37:43 UTC) #7
mef
https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode102 components/cronet/ios/BUILD.gn:102: ldflags += [ "-Wcrl,dsym," + rebase_path(root_out_dir) ] On 2016/07/01 ...
4 years, 5 months ago (2016-07-01 16:02:35 UTC) #8
Robert Sesek
https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode102 components/cronet/ios/BUILD.gn:102: ldflags += [ "-Wcrl,dsym," + rebase_path(root_out_dir) ] On 2016/07/01 ...
4 years, 5 months ago (2016-07-01 16:50:28 UTC) #9
mef
On 2016/07/01 16:50:28, Robert Sesek wrote: > https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn > File components/cronet/ios/BUILD.gn (right): > > https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode102 ...
4 years, 5 months ago (2016-07-01 19:51:18 UTC) #11
mef
On 2016/07/01 16:50:28, Robert Sesek wrote: > https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn > File components/cronet/ios/BUILD.gn (right): > > https://codereview.chromium.org/2115583002/diff/80001/components/cronet/ios/BUILD.gn#newcode102 ...
4 years, 5 months ago (2016-07-01 19:51:20 UTC) #12
Robert Sesek
On 2016/07/01 19:51:20, mef wrote: > On 2016/07/01 16:50:28, Robert Sesek wrote: > > > ...
4 years, 5 months ago (2016-07-01 20:05:52 UTC) #13
mef
PTAL. I've updated the package_ios.py script that we use to build all permutations of Cronet ...
4 years, 5 months ago (2016-07-12 01:02:46 UTC) #14
kapishnikov
LGTM. One comment. https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn#newcode110 components/cronet/ios/BUILD.gn:110: configs += [ "//build/config/mac:strip_all" ] We ...
4 years, 5 months ago (2016-07-14 21:37:37 UTC) #15
Robert Sesek
https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn#newcode110 components/cronet/ios/BUILD.gn:110: configs += [ "//build/config/mac:strip_all" ] On 2016/07/14 21:37:37, kapishnikov ...
4 years, 5 months ago (2016-07-14 21:40:12 UTC) #16
kapishnikov
https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn#newcode110 components/cronet/ios/BUILD.gn:110: configs += [ "//build/config/mac:strip_all" ] On 2016/07/14 21:40:12, Robert ...
4 years, 5 months ago (2016-07-14 21:45:50 UTC) #17
Robert Sesek
https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn#newcode110 components/cronet/ios/BUILD.gn:110: configs += [ "//build/config/mac:strip_all" ] On 2016/07/14 21:45:50, kapishnikov ...
4 years, 5 months ago (2016-07-14 21:49:34 UTC) #18
mef
https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn File components/cronet/ios/BUILD.gn (right): https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn#newcode110 components/cronet/ios/BUILD.gn:110: configs += [ "//build/config/mac:strip_all" ] On 2016/07/14 21:49:34, Robert ...
4 years, 5 months ago (2016-07-15 13:50:28 UTC) #19
kapishnikov
On 2016/07/15 13:50:28, mef wrote: > https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn > File components/cronet/ios/BUILD.gn (right): > > https://codereview.chromium.org/2115583002/diff/200001/components/cronet/ios/BUILD.gn#newcode110 > ...
4 years, 5 months ago (2016-07-15 14:32:20 UTC) #21
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/2115583002/200001
4 years, 5 months ago (2016-07-15 14:39:45 UTC) #23
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 5 months ago (2016-07-15 16:18:48 UTC) #25
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-15 16:18:58 UTC) #26
commit-bot: I haz the power
Patchset 11 (id:??) landed as https://crrev.com/941bc7e523e5502a6d2211d0c0837504e0bfc5dd Cr-Commit-Position: refs/heads/master@{#405768}
4 years, 5 months ago (2016-07-15 16:20:37 UTC) #28
sdefresne
On 2016/07/15 16:20:37, commit-bot: I haz the power wrote: > Patchset 11 (id:??) landed as ...
4 years, 5 months ago (2016-07-18 12:51:12 UTC) #29
mef
On 2016/07/18 12:51:12, sdefresne wrote: > On 2016/07/15 16:20:37, commit-bot: I haz the power wrote: ...
4 years, 5 months ago (2016-07-18 16:27:10 UTC) #30
sdefresne
4 years, 5 months ago (2016-07-18 16:32:58 UTC) #31
Message was sent while issue was closed.
On 2016/07/18 16:27:10, mef wrote:
> On 2016/07/18 12:51:12, sdefresne wrote:
> > On 2016/07/15 16:20:37, commit-bot: I haz the power wrote:
> > > Patchset 11 (id:??) landed as
> > > https://crrev.com/941bc7e523e5502a6d2211d0c0837504e0bfc5dd
> > > Cr-Commit-Position: refs/heads/master@{#405768}
> > 
> > Support for fat binaries landed with
> > https://codereview.chromium.org/2135323002/.
> > 
> > To build fat binary, you would use "additional_target_cpus" when running "gn
> > args". For example, to build for both 32-bit and 64-bit arm architectures,
you
> > would have the following in args.gn file:
> > 
> > target_cpu = "arm64"
> > additional_target_cpus = [ "arm" ]
> > 
> > I have not tested the interaction with enable_dsyms=true. If this does not
> work
> > as expected, then it is a bug and I'll address it before EOW.
> 
> Great, I'll try it out!

https://codereview.chromium.org/2160653002/ is there to fix the dSYM support for
fat builds.

Powered by Google App Engine
This is Rietveld 408576698