You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Ports/WindowsPort.md
+12-32Lines changed: 12 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,27 +7,22 @@ It supports only 64 bit Windows.
7
7
8
8
## Installing Development Tools
9
9
10
-
You need CMake, Perl, Python, Ruby, gperf, the latest Windows SDK, and Visual Studio 2022 to build Windows port.
10
+
Install [the latest Visual Studio with "Desktop development with C++" workload](https://learn.microsoft.com/en-us/cpp/build/vscpp-step-0-installation).
11
+
12
+
Install CMake, Perl, Python, Ruby, gperf, LLVM, and Ninja.
11
13
You can use [Chocolatey](https://chocolatey.org/) to install the tools.
12
14
13
15
[ActivePerl chocolatey package](https://community.chocolatey.org/packages/ActivePerl) has a problem and no package maintainer now.
14
16
XAMPP includes Perl, and running layout tests needs XAMPP. Install XAMPP instead.
Windows Git enables `autocrlf` by default. But, some layout tests files have to be checked out as LF line end style. See [Bug 240158](https://bugs.webkit.org/show_bug.cgi?id=240158).
28
23
29
24
```
30
-
git config --global core.autocrlf input
25
+
git config --global core.autocrlf input
31
26
```
32
27
33
28
### Using winget
@@ -36,7 +31,7 @@ If you prefer [winget](https://learn.microsoft.com/en-us/windows/package-manager
set WEBKIT_TESTFONTS=%~dp0Tools\WebKitTestRunner\fonts
66
61
set DUMPRENDERTREE_TEMP=%TEMP%
67
62
63
+
set CC=clang-cl
64
+
set CXX=clang-cl
65
+
68
66
rem set http_proxy=http://your-proxy:8080
69
67
rem set https_proxy=%http_proxy%
70
68
@@ -113,6 +111,9 @@ You can run programs under a debugger with [this instruction](../Build & Debug/D
113
111
114
112
### Building from within Visual Studio
115
113
114
+
You can use CMake Visual Studio generator instead of Ninja generator.
115
+
Install [the LLVM extension](https://learn.microsoft.com/en-us/cpp/build/clang-support-msbuild) of MSBuild.
116
+
116
117
In the WinKit command prompt,
117
118
118
119
```
@@ -213,24 +214,3 @@ OK
213
214
Due to the useless error message, this is a Windows port FAQ.
214
215
The error message actually means MiniBrowserLib.dll can't load required DLL of WebKitRequirements.
215
216
You have to set the env var WEBKIT_LIBRARIES. Or, copy all DLL of WebKitRequirements to the directory of MiniBrowser.exe as explained in the above section.
216
-
217
-
218
-
## Compiling with Clang
219
-
220
-
[clang-cl has a problem for /MP support.](https://reviews.llvm.org/D52193)
221
-
It's recommended to use Ninja with clang-cl.
222
-
Install clang-cl and Ninja.
223
-
224
-
```
225
-
choco install -y llvm ninja
226
-
```
227
-
228
-
Open Visual Studio Command Prompt, and invoke the following commands.
229
-
230
-
```
231
-
set CC=clang-cl
232
-
set CXX=clang-cl
233
-
perl Tools\Scripts\build-webkit --release --ninja
234
-
```
235
-
236
-
clang-cl builds are experimental, see [Bug 171618](https://bugs.webkit.org/show_bug.cgi?id=171618) for the current status.
0 commit comments