@@ -26,6 +26,8 @@ set BuildRoot=T:
26
26
27
27
:: Identify the InstallRoot
28
28
set InstallRoot = %BuildRoot% \Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr
29
+ set PlatformRoot = %BuildRoot% \Library\Developer\Platforms\Windows.platform
30
+ set SDKInstallRoot = %PlatformRoot% \Developer\SDKs\Windows.sdk
29
31
30
32
:: Setup temporary directories
31
33
md %BuildRoot% \tmp
@@ -213,7 +215,7 @@ cmake ^
213
215
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
214
216
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
215
217
216
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk \usr ^
218
+ -D CMAKE_INSTALL_PREFIX=%SDKInstallRoot% \usr ^
217
219
218
220
-D LLVM_DIR=%BuildRoot% \1\lib\cmake\llvm ^
219
221
-D SWIFT_NATIVE_SWIFT_TOOLS_PATH=%BuildRoot% \1\bin ^
@@ -246,7 +248,7 @@ cmake ^
246
248
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
247
249
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
248
250
249
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk \usr ^
251
+ -D CMAKE_INSTALL_PREFIX=%SDKInstallRoot% \usr ^
250
252
251
253
-D ENABLE_SWIFT=YES ^
252
254
@@ -269,7 +271,7 @@ cmake ^
269
271
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
270
272
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
271
273
272
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk \usr ^
274
+ -D CMAKE_INSTALL_PREFIX=%SDKInstallRoot% \usr ^
273
275
274
276
-D CURL_DIR=%BuildRoot% \Library\curl-7.77.0\usr\lib\cmake\CURL ^
275
277
-D ICU_ROOT=%BuildRoot% \Library\icu-67.1 ^
@@ -284,7 +286,6 @@ cmake ^
284
286
285
287
-G Ninja ^
286
288
-S %SourceRoot% \swift-corelibs-foundation || (exit /b)
287
- :: TODO(compnerd) remove this - debugging
288
289
cmake --build %BuildRoot% \4 || (exit /b)
289
290
cmake --build %BuildRoot% \4 --target install || (exit /b)
290
291
@@ -302,7 +303,7 @@ cmake ^
302
303
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
303
304
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
304
305
305
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\ Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk \usr ^
306
+ -D CMAKE_INSTALL_PREFIX=%PlatformRoot% \ Developer\Library\XCTest-development \usr ^
306
307
307
308
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
308
309
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -326,7 +327,7 @@ cmake ^
326
327
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
327
328
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
328
329
329
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
330
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
330
331
331
332
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
332
333
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -352,7 +353,7 @@ cmake ^
352
353
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
353
354
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
354
355
355
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
356
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
356
357
357
358
-D LLBUILD_SUPPORT_BINDINGS=Swift ^
358
359
@@ -380,7 +381,7 @@ cmake ^
380
381
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
381
382
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
382
383
383
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
384
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
384
385
385
386
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
386
387
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -406,7 +407,7 @@ cmake ^
406
407
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
407
408
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
408
409
409
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
410
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
410
411
411
412
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
412
413
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -431,7 +432,7 @@ cmake ^
431
432
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
432
433
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
433
434
434
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
435
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
435
436
436
437
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
437
438
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -460,7 +461,7 @@ cmake ^
460
461
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
461
462
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
462
463
463
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
464
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
464
465
465
466
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
466
467
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -484,7 +485,7 @@ cmake ^
484
485
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
485
486
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
486
487
487
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
488
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
488
489
489
490
-G Ninja ^
490
491
-S %SourceRoot% \swift-collections || (exit /b)
@@ -505,7 +506,7 @@ cmake ^
505
506
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
506
507
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
507
508
508
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
509
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
509
510
510
511
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
511
512
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -537,7 +538,7 @@ cmake ^
537
538
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
538
539
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
539
540
540
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
541
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
541
542
542
543
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
543
544
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -562,7 +563,7 @@ cmake ^
562
563
-D CMAKE_EXE_LINKER_FLAGS=" /INCREMENTAL:NO" ^
563
564
-D CMAKE_SHARED_LINKER_FLAGS=" /INCREMENTAL:NO" ^
564
565
565
- -D CMAKE_INSTALL_PREFIX=%BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk\usr ^
566
+ -D CMAKE_INSTALL_PREFIX=%InstallRoot% ^
566
567
567
568
-D dispatch_DIR=%BuildRoot% \3\cmake\modules ^
568
569
-D Foundation_DIR=%BuildRoot% \4\cmake\modules ^
@@ -580,9 +581,9 @@ cmake --build %BuildRoot%\15 || (exit /b)
580
581
cmake --build %BuildRoot% \15 --target install || (exit /b)
581
582
582
583
:: Create Configuration Files
583
- python -c " import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'DEFAULT_USE_RUNTIME': 'MD' } }), encoding='utf-8'))" > %BuildRoot% \Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk \SDKSettings.plist
584
+ python -c " import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'DEFAULT_USE_RUNTIME': 'MD' } }), encoding='utf-8'))" > %SDKInstallRoot% \SDKSettings.plist
584
585
:: TODO(compnerd) match the XCTest installation name
585
- python -c " import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'XCTEST_VERSION': 'development' } }), encoding='utf-8'))" > %BuildRoot% \Library\Developer\Platforms\Windows.platform \Info.plist
586
+ python -c " import plistlib; print(str(plistlib.dumps({ 'DefaultProperties': { 'XCTEST_VERSION': 'development' } }), encoding='utf-8'))" > %PlatformRoot% \Info.plist
586
587
587
588
:: Clean up the module cache
588
589
rd /s /q %LocalAppData% \clang\ModuleCache
0 commit comments