@@ -41,6 +41,7 @@ it provides some of the needed headers and libraries.
41
41
1 . Clone ` apple/swift-corelibs-foundation ` into a folder named ` swift-corelibs-foundation `
42
42
1 . Clone ` apple/swift-corelibs-xctest ` into a folder name ` swift-corelibs-xctest `
43
43
1 . Clone ` apple/swift-lldb ` into a folder named ` lldb `
44
+ 1 . Clone ` libxml2 ` into a folder named ` libxml2 `
44
45
45
46
- Currently, other repositories in the Swift project have not been tested and
46
47
may not be supported.
@@ -63,6 +64,7 @@ git clone https://github.com/apple/swift-corelibs-libdispatch
63
64
git clone https://github.com/apple/swift-corelibs-foundation
64
65
git clone https://github.com/apple/swift-corelibs-xctest
65
66
git clone https://github.com/apple/swift-lldb lldb
67
+ git clone https://gitlab.gnome.org/GNOME/libxml2.git libxml2
66
68
```
67
69
68
70
### 3. Acquire ICU
@@ -242,11 +244,19 @@ popd
242
244
cmake --build S:\b\libdispatch
243
245
```
244
246
245
- ### 11. Build swift-corelibs-foundation
247
+ ### 11. Build libxml2
248
+
249
+ ``` cmd
250
+ pushd "S:\libxml2\win32"
251
+ cscript configure.js iconv=no
252
+ nmake /f Makefile.msvc
253
+ popd
254
+ ```
255
+
256
+ ### 12. Build swift-corelibs-foundation
246
257
247
258
To build Foundation you will need builds of:
248
259
249
- - ` libxml2 ` (http://xmlsoft.org , download and unzip the Windows prebuilt or build your own)
250
260
- ` libcurl ` (https://curl.haxx.se , download the source, ` cd ` into ` winbuild ` , and run ` nmake /f Makefile.vc mode=static VC=15 MACHINE=x64 ` )
251
261
252
262
``` cmd
@@ -269,7 +279,7 @@ cmake -G Ninja^
269
279
270
280
```
271
281
272
- ### 12 . Build swift-corelibs-xctest
282
+ ### 13 . Build swift-corelibs-xctest
273
283
274
284
``` cmd
275
285
mkdir "S:\b\xctest"
286
296
cmake --build S:\b\xctest
287
297
```
288
298
289
- ### 13 . Install Swift on Windows
299
+ ### 14 . Install Swift on Windows
290
300
291
301
- Run ninja install:
292
302
0 commit comments