Version 1 (modified by 18 years ago) ( diff ) | ,
---|
Building on Windows
There is a decent amount of setup work before building of JavaScriptCore and WebCore on Windows. There are also some areas of the code which are not entirely fleshed out yet on Win32. This page serves to document those issues.
Build Environment Setup
- Install a compiler:
- Visual Studio 2005, if you have MSDN subscription or have purchased it.
- or Visual C++ Express Edition (free of charge). See the MSDN documentation for information on building Win32 C++ applications using Visual C++ Express Edition.
- Download and install cygwin. On the package selection screen, make sure to select the following packages that are not part of the default install: bison, curl, flex, gperf, perl, openssh, svn, unzip and gcc (we only use cpp).
- Check out WebKit in the usual way.
- 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 thePATH
andWebKitOutputDir
environment variables. You may wish to changeWebKitOutputDir
from the default ofC:\WebKitBuild
. - Optional: if you would like an IRC client for Windows, try mIRC, X-Chat, or Trillian. If you want a non-IE browser, try Firefox or Opera.
Building
From within Visual Studio
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.
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.
TODO: How to build Spinneret?
From the command line
To build from the command line, you use the following syntax:
WebKitTools/Scripts/build-webkit
This will build both projects.
Areas needing improvement
TODO: fill me in?