Building WebKitBuilding WebKit requires that you have the proper developer tools installed and that you have a copy of the WebKit source tree.
Open a Cygwin Shell (if not already open from checking out sources)
Double-click the Cygwin icon on your Desktop to launch a new shell.
build-webkitscript to build WebKit.
--debugoption for a debug build, which includes debugging symbols and assertions:
build-webkit places build products in
WebKitBuild. You can specify a different build
location on Mac in your Xcode preferences. On other platforms, the
WEBKIT_OUTPUTDIR environment variable can be used to
set a different build products location. If you have set up a custom build location, then
place the build products there.
A common source of build errors on Windows is Visual C++ Express forgetting the Platform SDK paths. If you have trouble building WebKit, double check that the paths you set during step 2 of the Platform SDK Installation are still there and add them again if necessary.
Building on Windows requires a few more steps, you should look at: http://trac.webkit.org/wiki/BuildingOnWindows
Don't forget that if you have any questions or problems building WebKit, feel free to get in touch!
Once your build has finished, you can run it inside Safari.
Building WebKit from Xcode
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
build-webkit 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’t need to do this.
Setting a Default Configuration
To set a default build configuration for
build-webkitand other scripts, use the