Here are the steps I had to take to build WebKit on Windows 10 without Cygwin (Apple Win port)
- Install the following programs:
- Visual Studio Community. (Make sure you include C++ support.) https://www.visualstudio.com/vs/ Note that you must stay up-to-date with Visual Studio updates if you want to continue building ToT!
- ActiveState Perl. 64-bit is fine. http://www.activestate.com/activeperl/downloads
- ActiveState Python. Make sure it's version 2.x instead of 3.x. 64-bit is fine. http://www.activestate.com/activepython/downloads Make sure you don't download it from python.org because we hardcode the executable name as "python2.7" and the python.org python doesn't include an executable with that name.
- Ruby. 64-bit is fine. http://rubyinstaller.org/
- Bison. http://gnuwin32.sourceforge.net/packages/bison.htm Make sure that the installation path does not have spaces in it, because Bison does not correctly quote paths when passing them to m4.
- Gperf. http://gnuwin32.sourceforge.net/packages/gperf.htm
- Flex. http://gnuwin32.sourceforge.net/packages/flex.htm
- GNU Make. http://gnuwin32.sourceforge.net/packages/make.htm
- CMake. https://cmake.org/download/
- Git. http://www.git-scm.com/download/win Note: Make sure you select the option "Use Git from the Windows Command Prompt." This is because it installs a sh.exe in your path, and if the location of that sh.exe has spaces in it, Make gets confused. When I installed this, I unchecked all the options.
- iTunes (yes, really.) http://www.apple.com/itunes/download/ This is needed because it includes the .dlls which implement Apple frameworks like CoreGraphics, CoreAnimation, etc.
- The "Ahem" font, used for testing. http://www.w3.org/Style/CSS/Test/Fonts/Ahem/
- (Optional: If you intend to interact with Subversion patches) Subversion. http://sourceforge.net/projects/win32svn/
- Make sure all the programs you just installed (except Visual Studio and iTunes) are accessible through your $PATH. http://www.itechtics.com/customize-windows-environment-variables/ You may be required to reboot after modifying $PATH before new shells will see the updated variable.
- Set HTTP_PROXY and HTTPS_PROXY environment variables if behind a proxy
- Tell git your name. > git config --global user.name "John Smith"
- Tell git your email address. > git config --global user.email "johnsmith@example.com"
- > git clone git://git.webkit.org/WebKit.git
- > cd WebKit
- (Optional: If you intend to interact with Subversion patches) Automatically configure the local clone to follow Subversion: > python Tools\Scripts\webkit-patch setup-git-clone
- Download the WebKit Support Libraries to the root of your source tree https://developer.apple.com/opensource/internet/webkit_sptlib_agree.html If the file is incorrectly named, rename it to WebKitSupportLibrary.zip. Do not extract its contents. This archive includes an SDK (headers only) for the Windows builds of the Apple stack of software (like CoreGraphics, for example).
- > cd Tools\Scripts
- > perl update-webkit Note that this command will automatically download WebKitAuxiliaryLibraries.zip from Apple and extract it into your tree (inside the WebKitLibraries folder). This archive includes Windows builds of all the public libraries that WebKit depends on (like libxml2). Note also that this command might set environment variables.
- If the above command asks you to reboot your machine, do so
- > perl build-webkit Note that this command will automatically extract WebKitSupportLibrary.zip (which you downloaded in step 6) into your tree (inside the WebKitLibraries folder).
If you have any problems, please file bugs on mmaxfield@apple.com or Brent Fulgham or achristensen@apple.com
Last modified
8 years ago
Last modified on Jan 28, 2017, 11:54:50 PM
Note:
See TracWiki
for help on using the wiki.