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

Issue 2665333002: Add a BUILD target and a script to build a public static library for ios/web_view. (Closed)

Created:
3 years, 10 months ago by Hiroshi Ichikawa
Modified:
3 years, 8 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a BUILD target and a script to build a public static library for ios/web_view.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Apply review comments. #

Total comments: 2

Patch Set 3 : Let ios_web_view_shell use the generated public static library. #

Patch Set 4 : Slightly simplified a build rule. #

Total comments: 6

Patch Set 5 : Apply review comments. #

Patch Set 6 : Make it work after the separation of ARC-enabled/disabled targets. #

Total comments: 2

Patch Set 7 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+174 lines, -26 lines) Patch
M ios/web_view/BUILD.gn View 1 2 3 4 1 chunk +24 lines, -2 lines 0 comments Download
M ios/web_view/internal/BUILD.gn View 1 2 3 4 5 6 2 chunks +62 lines, -23 lines 0 comments Download
A ios/web_view/internal/hide_symbols.py View 1 2 3 4 5 1 chunk +88 lines, -0 lines 0 comments Download
M ios/web_view/shell/BUILD.gn View 1 2 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 36 (11 generated)
Hiroshi Ichikawa
Let me know if there's a better way to write BUILD rules and structure things ...
3 years, 10 months ago (2017-02-01 07:39:13 UTC) #3
Hiroshi Ichikawa
Also it may be better to generate a framework for this, which can bundle resource ...
3 years, 10 months ago (2017-02-01 07:42:09 UTC) #4
michaeldo
+ Sylvain for input on linker error and static_lib correctness. Please wrap the description at ...
3 years, 10 months ago (2017-02-03 17:27:52 UTC) #6
ichikawa
On 2017/02/03 17:27:52, michaeldo wrote: > + Sylvain for input on linker error and static_lib ...
3 years, 10 months ago (2017-02-06 05:46:29 UTC) #8
ichikawa
https://codereview.chromium.org/2665333002/diff/1/ios/web_view/BUILD.gn File ios/web_view/BUILD.gn (right): https://codereview.chromium.org/2665333002/diff/1/ios/web_view/BUILD.gn#newcode19 ios/web_view/BUILD.gn:19: copy("web_view_public") { On 2017/02/03 17:27:52, michaeldo wrote: > I ...
3 years, 10 months ago (2017-02-06 05:46:38 UTC) #10
sdefresne
On 2017/02/06 05:46:29, ichikawa wrote: > On 2017/02/03 17:27:52, michaeldo wrote: > > + Sylvain ...
3 years, 10 months ago (2017-02-06 14:22:38 UTC) #11
sdefresne
https://codereview.chromium.org/2665333002/diff/20001/ios/web_view/internal/BUILD.gn File ios/web_view/internal/BUILD.gn (right): https://codereview.chromium.org/2665333002/diff/20001/ios/web_view/internal/BUILD.gn#newcode5 ios/web_view/internal/BUILD.gn:5: DEPS = [ nit: I would name this "_deps" ...
3 years, 10 months ago (2017-02-06 14:22:44 UTC) #12
Hiroshi Ichikawa
https://codereview.chromium.org/2665333002/diff/20001/ios/web_view/internal/BUILD.gn File ios/web_view/internal/BUILD.gn (right): https://codereview.chromium.org/2665333002/diff/20001/ios/web_view/internal/BUILD.gn#newcode5 ios/web_view/internal/BUILD.gn:5: DEPS = [ On 2017/02/06 14:22:44, sdefresne wrote: > ...
3 years, 10 months ago (2017-02-07 03:40:35 UTC) #13
Hiroshi Ichikawa
PTAL. On 2017/02/06 14:22:38, sdefresne wrote: > On 2017/02/06 05:46:29, ichikawa wrote: > > On ...
3 years, 10 months ago (2017-02-07 03:44:16 UTC) #14
michaeldo
Thanks for the updates! LGTM I think it's good that //ios/web_view:web_view is replaced with the ...
3 years, 10 months ago (2017-02-07 18:14:21 UTC) #15
Hiroshi Ichikawa
https://codereview.chromium.org/2665333002/diff/60001/ios/web_view/BUILD.gn File ios/web_view/BUILD.gn (right): https://codereview.chromium.org/2665333002/diff/60001/ios/web_view/BUILD.gn#newcode17 ios/web_view/BUILD.gn:17: # The generated libweb_view.a can be also linked to ...
3 years, 10 months ago (2017-02-08 01:16:21 UTC) #16
Hiroshi Ichikawa
I rebased to the latest head. It got a bit tricky after Mike separated :internal ...
3 years, 10 months ago (2017-02-10 06:36:45 UTC) #17
michaeldo
On 2017/02/10 06:36:45, Hiroshi Ichikawa wrote: > I rebased to the latest head. > > ...
3 years, 10 months ago (2017-02-10 07:34:53 UTC) #18
sdefresne
lgtm https://codereview.chromium.org/2665333002/diff/100001/ios/web_view/BUILD.gn File ios/web_view/BUILD.gn (right): https://codereview.chromium.org/2665333002/diff/100001/ios/web_view/BUILD.gn#newcode19 ios/web_view/BUILD.gn:19: copy("web_view") { Note: if you want to support ...
3 years, 10 months ago (2017-02-10 09:58:15 UTC) #19
Hiroshi Ichikawa
https://codereview.chromium.org/2665333002/diff/100001/ios/web_view/BUILD.gn File ios/web_view/BUILD.gn (right): https://codereview.chromium.org/2665333002/diff/100001/ios/web_view/BUILD.gn#newcode19 ios/web_view/BUILD.gn:19: copy("web_view") { On 2017/02/10 09:58:15, sdefresne wrote: > Note: ...
3 years, 10 months ago (2017-02-10 10:02:27 UTC) #20
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/2665333002/100001
3 years, 10 months ago (2017-02-10 10:02:49 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/40350)
3 years, 10 months ago (2017-02-10 10:08:13 UTC) #25
chromium-reviews
Unfortunately the test has failed, and I won't have time to fix it before my ...
3 years, 10 months ago (2017-02-10 14:20:51 UTC) #26
michaeldo
On 2017/02/10 14:20:51, chromium-reviews wrote: > Unfortunately the test has failed, and I won't have ...
3 years, 9 months ago (2017-02-27 00:01:45 UTC) #27
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/2665333002/120001
3 years, 9 months ago (2017-03-02 07:01:54 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/52483)
3 years, 9 months ago (2017-03-02 07:20:57 UTC) #32
Hiroshi Ichikawa
On 2017/02/27 00:01:45, michaeldo wrote: > On 2017/02/10 14:20:51, chromium-reviews wrote: > > Unfortunately the ...
3 years, 9 months ago (2017-03-02 08:51:24 UTC) #33
Hiroshi Ichikawa
Decided to switch to dynamic framework for now because we couldn't easily find a solution ...
3 years, 9 months ago (2017-03-13 03:40:44 UTC) #34
mef
On 2017/03/13 03:40:44, Hiroshi Ichikawa wrote: > Decided to switch to dynamic framework for now ...
3 years, 8 months ago (2017-04-11 20:50:26 UTC) #35
Hiroshi Ichikawa
3 years, 8 months ago (2017-04-12 01:28:59 UTC) #36
Message was sent while issue was closed.
On 2017/04/11 20:50:26, mef wrote:
> On 2017/03/13 03:40:44, Hiroshi Ichikawa wrote:
> > Decided to switch to dynamic framework for now because we couldn't easily
find
> a
> > solution for the build issue above.
> > https://codereview.chromium.org/2745653010/
> > 
> > It's possible to revisit this CL again later, though.
> 
> 
> FWIW I've got the same error trying to build cronet as static library
> (https://codereview.chromium.org/2807283002):
> 
> ld: scattered reloc r_address too large for architecture i386
> 
> It happens only in build for x86 in Debug iphonesimulator configuration. 
> All other configurations (release, x64, arm, arm64) seem to be ok.

Does it happen only on trybot, or does it happen on local build too?

For me, it worked fine with local build, and the issue happened only on trybot.

If it's also the case for you, one possible workaround is to stop integrating
hide_symbols.py into the BUILD.gn file, and run the script manually locally to
build the static library. It's not a great solution, though.

Powered by Google App Engine
This is Rietveld 408576698