Bug 104739 - Add instructions on how to build WebKit on Xcode 4 to build.html
Summary: Add instructions on how to build WebKit on Xcode 4 to build.html
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Website (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-11 16:22 PST by Ryosuke Niwa
Modified: 2012-12-11 17:04 PST (History)
6 users (show)

See Also:


Attachments
Patch (1.52 KB, patch)
2012-12-11 16:29 PST, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Patch (1.65 KB, patch)
2012-12-11 16:56 PST, Ryosuke Niwa
dbates: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2012-12-11 16:22:01 PST
Apparently we need to change the workspace setting or else WebKit doesn’t build.
Comment 1 Ryosuke Niwa 2012-12-11 16:29:04 PST
Created attachment 178913 [details]
Patch
Comment 2 Mark Rowe (bdash) 2012-12-11 16:44:36 PST
Wouldn't this result in a configuration in which the world will rebuild when you switch between building via the command-line and in Xcode?
Comment 3 Brent Fulgham 2012-12-11 16:44:49 PST
Comment on attachment 178913 [details]
Patch

I hate the setting.  :-)  r+
Comment 4 Daniel Bates 2012-12-11 16:46:58 PST
Comment on attachment 178913 [details]
Patch

Can you please use similar wording as on <http://www.webkit.org/building/debug.html>
Comment 5 Brent Fulgham 2012-12-11 16:47:34 PST
(In reply to comment #2)
> Wouldn't this result in a configuration in which the world will rebuild when you switch between building via the command-line and in Xcode?

I thought this just sets the same target location for both builds.  Wouldn't that actually prevent having to do a full rebuild when switching from command-line to Xcode?
Comment 6 Daniel Bates 2012-12-11 16:49:16 PST
Comment on attachment 178913 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=178913&action=review

> Websites/webkit.org/building/build.html:44
> +<h2>Building WebKit from XCode</h2>

Nit: XCode => Xcode
Comment 7 Mark Rowe (bdash) 2012-12-11 16:51:21 PST
(In reply to comment #5)
> (In reply to comment #2)
> > Wouldn't this result in a configuration in which the world will rebuild when you switch between building via the command-line and in Xcode?
> 
> I thought this just sets the same target location for both builds.  Wouldn't that actually prevent having to do a full rebuild when switching from command-line to Xcode?

I was confusing the top level "Relative" setting for Derived Data with the "Relative" sub-option of the "Custom" setting (because that's not at all a confusing way for Xcode to express things :-/).
Comment 8 Ryosuke Niwa 2012-12-11 16:56:24 PST
Created attachment 178921 [details]
Patch
Comment 9 Ryosuke Niwa 2012-12-11 16:56:40 PST
(In reply to comment #7)
>
> I was confusing the top level "Relative" setting for Derived Data with the "Relative" sub-option of the "Custom" setting (because that's not at all a confusing way for Xcode to express things :-/).

Yeah, it’s very confusing :(
Comment 10 Daniel Bates 2012-12-11 17:02:08 PST
Comment on attachment 178921 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=178921&action=review

r=me

> Websites/webkit.org/building/build.html:45
> +<h2>Building WebKit from Xcode</h2>
> +<p>To build from within Xcode, you can use the WebKit workspace. Ensure that the Products and Intermediates locations for the workspace match those used by <code>build-webkit</code> by choosing File > Workspace Settings and clicking the Advanced button, selecting Custom, Relative to Workspace, and entering WebKitBuild both for Products and for Intermediates. Note that if you have specified a custom build location in Xcode preferences, then you don&rsquo;t need to do this.</p>

I wish there was a way to repurpose the text that is in common with <http://www.webkit.org/building/debug.html> so that we we would not have to duplicate it.
Comment 11 Ryosuke Niwa 2012-12-11 17:02:58 PST
Comment on attachment 178921 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=178921&action=review

>> Websites/webkit.org/building/build.html:45
>> +<p>To build from within Xcode, you can use the WebKit workspace. Ensure that the Products and Intermediates locations for the workspace match those used by <code>build-webkit</code> by choosing File > Workspace Settings and clicking the Advanced button, selecting Custom, Relative to Workspace, and entering WebKitBuild both for Products and for Intermediates. Note that if you have specified a custom build location in Xcode preferences, then you don&rsquo;t need to do this.</p>
> 
> I wish there was a way to repurpose the text that is in common with <http://www.webkit.org/building/debug.html> so that we we would not have to duplicate it.

Yeah. I think we should re-organize the website at some point.
Comment 12 Ryosuke Niwa 2012-12-11 17:04:17 PST
Committed r137390: <http://trac.webkit.org/changeset/137390>