RESOLVED FIXED 185011
Use unified build for NetworkProcess
https://bugs.webkit.org/show_bug.cgi?id=185011
Summary Use unified build for NetworkProcess
Michael Catanzaro
Reported 2018-04-25 16:51:00 PDT
Let's take this piece-by-piece. Keith, I'm about to attach a patch that switches CMake to use unified build, and moves around using statements in the associated source files, and #undefs macros where needed. Would you be interested in making the corresponding changes to the XCode build?
Attachments
Patch (27.74 KB, patch)
2018-04-25 17:03 PDT, Michael Catanzaro
no flags
Patch (89.61 KB, patch)
2018-08-20 16:16 PDT, Tim Horton
no flags
Michael Catanzaro
Comment 1 2018-04-25 17:03:06 PDT
(Note I'm only touching cross-platform files here.)
Michael Catanzaro
Comment 2 2018-04-25 17:03:13 PDT
Michael Catanzaro
Comment 3 2018-05-03 15:52:17 PDT
Anyone interested in helping with the XCode portion of this?
Michael Catanzaro
Comment 4 2018-05-18 08:45:50 PDT
Ping reviewers. Let's land CMake first for now. Apple can follow up with XCode later.
Michael Catanzaro
Comment 5 2018-05-23 17:35:21 PDT
Ping reviewers
Michael Catanzaro
Comment 6 2018-08-18 07:52:10 PDT
Comment on attachment 338830 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=338830&action=review > Source/WebKit/NetworkProcess/Cookies/WebCookieManager.cpp:43 > -using namespace WebCore; > - > namespace WebKit { > +using namespace WebCore; There is a question of code style: should we leave a blank line after namespace WebKit { and before using namespace WebCore;? My inclination would have been to do so, to match the previous code style. But Keith consistently avoided the blank line when moving WebCore and the other projects to unified sources, and that is a much larger amount of code, so that's why I chose to avoid it here. There will be inconsistency either way.
Alex Christensen
Comment 7 2018-08-20 12:22:41 PDT
Comment on attachment 338830 [details] Patch I think this is fine. If someone is bothered by the inconsistent spacing they can establish a style guideline and fix it.
Tim Horton
Comment 8 2018-08-20 12:26:42 PDT
*** Bug 188719 has been marked as a duplicate of this bug. ***
Michael Catanzaro
Comment 9 2018-08-20 12:33:05 PDT
This will surely break Cocoa ports if committed now; it needs help from Tim or someone with XCode. The EWS are green because Cocoa ports didn't use Sources.txt at the time I uploaded the patch. Basically I think each of these unified source patches is going to require an Apple developer, since the required XCode changes are too hard to do blindly. But CMake ports should no longer require any changes after bug #188732 lands.
Tim Horton
Comment 10 2018-08-20 12:56:46 PDT
Yeah, I’m planning on taking a stab at this shortly.
Michael Catanzaro
Comment 11 2018-08-20 13:39:06 PDT
Please try bug #188732 first, because that bug will get harder to handle otherwise.
Tim Horton
Comment 12 2018-08-20 13:44:49 PDT
(In reply to Michael Catanzaro from comment #11) > Please try bug #188732 first, because that bug will get harder to handle > otherwise. Good point. OK, will go over there.
Tim Horton
Comment 13 2018-08-20 16:16:30 PDT
Michael Catanzaro
Comment 14 2018-08-20 17:28:15 PDT
Comment on attachment 347560 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=347560&action=review > Source/WebKit/ChangeLog:1 > +2018-08-20 Michael Catanzaro <mcatanzaro@igalia.com> If you like, you can add yourself here when we have shared patches: 2018-08-20 Michael Catanzaro <mcatanzaro@igalia.com> and Timothy Horton <thorton@apple.com> It doesn't show up perfectly in trac, but it works. Anyway, doesn't matter.
Tim Horton
Comment 15 2018-08-20 17:32:42 PDT
(In reply to Michael Catanzaro from comment #14) > Comment on attachment 347560 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=347560&action=review > > > Source/WebKit/ChangeLog:1 > > +2018-08-20 Michael Catanzaro <mcatanzaro@igalia.com> > > If you like, you can add yourself here when we have shared patches: > 2018-08-20 Michael Catanzaro <mcatanzaro@igalia.com> and Timothy Horton > <thorton@apple.com> > > It doesn't show up perfectly in trac, but it works. > > Anyway, doesn't matter. You're doing the hard work, and I don't need to boost my patch count :P
WebKit Commit Bot
Comment 16 2018-08-20 17:50:13 PDT
Comment on attachment 347560 [details] Patch Clearing flags on attachment: 347560 Committed r235101: <https://trac.webkit.org/changeset/235101>
WebKit Commit Bot
Comment 17 2018-08-20 17:50:15 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 18 2018-08-20 17:51:31 PDT
Note You need to log in before you can comment on or make changes to this bug.