Getting WebKit

To download a pre-built bundle containing the latest WebKit, visit WebKit Nightly Builds.

Browsing the Code

To browse the source code online, visit WebKit Trac.

Checking Out

To work with the WebKit source tree, you will need a Subversion client installed. See Installing Developer Tools for information on how to install Subversion.

Mac OS X

  1. Install a Subversion Client

    Subversion (svn) is the source code management tool used by the WebKit Open Source Project. A Subversion 1.4 client for Mac OS X 10.4 is available.

  2. Open Terminal

    Terminal resides in /Applications/Utilities. The Finder Go menu provides a quick way to navigate there.

Windows

  1. Open a Cygwin Shell

    Double-click the Cygwin icon on your Desktop to launch a new shell.

  1. Type this command to check out the WebKit source tree:

    svn checkout http://svn.webkit.org/repository/webkit/trunk WebKit

    Alternatively you can download a snapshot of the WebKit source tree from http://live.nightly.webkit.org/files/WebKit-SVN-source.tar.bz2. It is updated every six hours.

Windows

  • Install the WebKit Support Libraries

    Download the WebKit Support Libraries to the root of your source tree (C:\cygwin\home\<username>\WebKit).

    If the file is incorrectly named, rename it to WebKitSupportLibrary.zip. Do not extract its contents.

    1. Type this command to update your source tree:

      WebKit/WebKitTools/Scripts/update-webkit

      If you downloaded the tarball, this will bring it up to date. Windows users must always execute this command after first obtaining the code, since it will download additional libraries that are needed to build.

    Once you have a current tree, the next step is building WebKit.

    Keeping up to Date

    At any time, you can retype the update-webkit command to update your source tree:

    WebKit/WebKitTools/Scripts/update-webkit


    It's handy to put WebKit/WebKitTools/Scripts in your shell path so you can type commands like update-webkit without specifying a full path.