29 | | * Run `WebKitTools/Scripts/install-win-extras`. This will install a few extra software packages on your system: icu, iconv, libxml, libxslt and setx. It will also configure the `PATH` and `WebKitOutputDir` environment variables. You may wish to change `WebKitOutputDir` from the default of `C:\WebKitBuild`. |
| 29 | * Install other dependencies needed by WebKit. There are two ways to do this: |
| 30 | * Run `WebKitTools/Scripts/install-win-extras`. This will attempt to install the dependencies automatically. It will also configure the `PATH` and `WebKitOutputDir` environment variables. You may wish to change `WebKitOutputDir` from the default of `C:\WebKitBuild`. |
| 31 | * Install the dependencies yourself. You will need the following packages. For each package, unzip, then move the resulting directory to a directory with the name given below (e.g. `iconv` for the iconv package) in the root of your WebKit checkout, except as directed. |
| 32 | * iconv ( ftp://fr.rpmfind.net/pub/libxml/win32/iconv-1.9.1.win32.zip ) |
| 33 | * icu ( ftp://ftp.software.ibm.com/software/globalization/icu/3.4/icu-3.4-Win32-msvc7.1.zip ) |
| 34 | * libxml ( ftp://fr.rpmfind.net/pub/libxml/win32/libxml2-2.6.23.win32.zip ) |
| 35 | * libxslt ( ftp://fr.rpmfind.net/pub/libxml/win32/libxslt-1.1.15.win32.zip ) |
| 36 | * pthreads ( ftp://sourceware.org/pub/pthreads-win32/pthreads-w32-2-8-0-release.exe ). Unzip (this is a `.zip` with an `.exe` wrapper) and move the resulting `Pre-built.2` directory to the target `pthreads` directory. |
| 37 | * sqlite ( http://sqlite.org/sqlitedll-3_3_17.zip (DLL), http://sqlite.org/sqlite-source-3_3_17.zip (header)). Unzip and move the resulting files to the target `sqlite` directory. |
| 38 | * zlib ( ftp://fr.rpmfind.net/pub/libxml/win32/zlib-1.2.3.win32.zip ) |
| 39 | * Configure your environment variables. If you ran `install-win-extras`, this is already done. Otherwise, consider setting the following environment variables: |
| 40 | * `WebKitOutputDir` to `c:\WebKitBuild` |
| 41 | * `Path` to include `WebKitTools/Scripts`, `c:\Program Files\Resource Kit`, and `c:\cygwin\bin` |
37 | | To build from within Visual Studio, open up `JavaScriptCore/JavaScriptCore.vcproj/JavaScriptCore.sln` and then select Build. There are two configurations, Debug and Release. The output directory structure is identical to Xcode, so you can safely change configurations and preserve your other configuration's intermediates and libraries/executables. |
38 | | |
39 | | After you've succeeded in building JavaScriptCore, you can do the same for WebCore, by opening up `WebCore/WebCore.vcproj/WebCore.sln` and selecting Build. |
40 | | |
41 | | For the test application, open `WebKitTools/Spinneret/Spinneret.sln` in VS. This also builds Webkit as a dependency. |
| 49 | To build from within Visual Studio, open up `WebKitTools/Spinneret/Spinneret.sln` in Visual Studio. There are two configurations, Debug and Release; building one will not clobber the other. The solution will build JavaScriptCore and WebCore as dependencies, and finally the Spinneret test app. |