|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <Include xmlns="http://wixtoolset.org/schemas/v4/wxs">
|
3 | 3 |
|
4 |
| - <?define ToolchainRoot = $(ImageRoot)\Toolchains\$(ProductVersion)+Asserts?> |
5 |
| - |
6 | 4 | <Package
|
7 | 5 | Language="1033"
|
8 | 6 | Manufacturer="!(loc.ManufacturerName)"
|
9 |
| - Name="!(loc.BldAsserts_ProductName)" |
10 |
| - UpgradeCode="$(BldAssertsUpgradeCode)" |
| 7 | + Name="$(VariantProductName)" |
| 8 | + UpgradeCode="$(VariantUpgradeCode)" |
11 | 9 | Version="$(NonSemVerProductVersion)"
|
12 | 10 | Scope="$(PackageScope)">
|
13 | 11 |
|
14 |
| - <Media Id="1" Cabinet="bld.asserts.cab" EmbedCab="$(ArePackageCabsEmbedded)" /> |
| 12 | + <Media Id="1" Cabinet="$(VariantCabinetName)" EmbedCab="$(ArePackageCabsEmbedded)" /> |
15 | 13 |
|
16 |
| - <WixVariable Id="SideBySidePackageUpgradeCode" Value="$(BldAssertsUpgradeCode)" /> |
| 14 | + <WixVariable Id="SideBySidePackageUpgradeCode" Value="$(VariantUpgradeCode)" /> |
17 | 15 | <FeatureGroupRef Id="SideBySideUpgradeStrategy" />
|
18 | 16 |
|
19 |
| - <DirectoryRef Id="toolchain_asserts_usr_include"> |
20 |
| - <Directory Id="toolchain_asserts_usr_include_llvm_c" Name="llvm-c" /> |
21 |
| - <Directory Id="toolchain_asserts_usr_include_swift" Name="swift" /> |
| 17 | + <DirectoryRef Id="toolchain_$(VariantName)_usr_include"> |
| 18 | + <Directory Id="toolchain_$(VariantName)_usr_include_llvm_c" Name="llvm-c" /> |
| 19 | + <Directory Id="toolchain_$(VariantName)_usr_include_swift" Name="swift" /> |
22 | 20 | </DirectoryRef>
|
23 | 21 |
|
24 |
| - <DirectoryRef Id="toolchain_asserts_usr_lib_swift"> |
25 |
| - <Directory Id="toolchain_asserts_usr_lib_swift_migrator" Name="migrator" /> |
26 |
| - <Directory Id="toolchain_asserts_usr_lib_swift_swiftToCxx" Name="swiftToCxx" /> |
| 22 | + <DirectoryRef Id="toolchain_$(VariantName)_usr_lib_swift"> |
| 23 | + <Directory Id="toolchain_$(VariantName)_usr_lib_swift_migrator" Name="migrator" /> |
| 24 | + <Directory Id="toolchain_$(VariantName)_usr_lib_swift_swiftToCxx" Name="swiftToCxx" /> |
27 | 25 | </DirectoryRef>
|
28 | 26 |
|
29 |
| - <DirectoryRef Id="toolchain_asserts_usr_share"> |
30 |
| - <Directory Id="toolchain_asserts_usr_share_clang" Name="clang" /> |
31 |
| - <Directory Id="toolchain_asserts_usr_share_swift" Name="swift" /> |
32 |
| - <Directory Id="toolchain_asserts_usr_share_doc" Name="doc"> |
33 |
| - <Directory Id="toolchain_asserts_usr_share_doc_swift" Name="swift"> |
34 |
| - <Directory Id="toolchain_asserts_usr_share_doc_swift_diagnostics" Name="diagnostics"> |
| 27 | + <DirectoryRef Id="toolchain_$(VariantName)_usr_share"> |
| 28 | + <Directory Id="toolchain_$(VariantName)_usr_share_clang" Name="clang" /> |
| 29 | + <Directory Id="toolchain_$(VariantName)_usr_share_swift" Name="swift" /> |
| 30 | + <Directory Id="toolchain_$(VariantName)_usr_share_doc" Name="doc"> |
| 31 | + <Directory Id="toolchain_$(VariantName)_usr_share_doc_swift" Name="swift"> |
| 32 | + <Directory Id="toolchain_$(VariantName)_usr_share_doc_swift_diagnostics" Name="diagnostics"> |
35 | 33 | </Directory>
|
36 | 34 | </Directory>
|
37 | 35 | </Directory>
|
38 | 36 | </DirectoryRef>
|
39 | 37 |
|
40 |
| - <ComponentGroup Id="cmark_gfm" Directory="toolchain_asserts_usr_bin"> |
| 38 | + <ComponentGroup Id="cmark_gfm" Directory="toolchain_$(VariantName)_usr_bin"> |
41 | 39 | <Component>
|
42 | 40 | <File Source="$(ToolchainRoot)\usr\bin/cmark-gfm.dll" />
|
43 | 41 | </Component>
|
|
46 | 44 | </Component>
|
47 | 45 | </ComponentGroup>
|
48 | 46 |
|
49 |
| - <ComponentGroup Id="binutils" Directory="toolchain_asserts_usr_bin"> |
| 47 | + <ComponentGroup Id="binutils" Directory="toolchain_$(VariantName)_usr_bin"> |
50 | 48 | <!-- TODO(compnerd) can we use symbolic links to llvm-ar.exe instead? -->
|
51 | 49 | <Component>
|
52 | 50 | <File Source="$(ToolchainRoot)\usr\bin\llvm-dlltool.exe" />
|
|
145 | 143 | </ComponentGroup>
|
146 | 144 |
|
147 | 145 | <ComponentGroup Id="lto">
|
148 |
| - <Component Directory="toolchain_asserts_usr_bin"> |
| 146 | + <Component Directory="toolchain_$(VariantName)_usr_bin"> |
149 | 147 | <File Source="$(ToolchainRoot)\usr\bin\LTO.dll" />
|
150 | 148 | </Component>
|
151 | 149 |
|
152 |
| - <Component Directory="toolchain_asserts_usr_lib"> |
| 150 | + <Component Directory="toolchain_$(VariantName)_usr_lib"> |
153 | 151 | <File Source="$(ToolchainRoot)\usr\lib\LTO.lib" />
|
154 | 152 | </Component>
|
155 | 153 |
|
156 |
| - <Component Directory="toolchain_asserts_usr_include_llvm_c"> |
| 154 | + <Component Directory="toolchain_$(VariantName)_usr_include_llvm_c"> |
157 | 155 | <File Source="$(ToolchainRoot)\usr\include\llvm-c\lto.h" />
|
158 | 156 | </Component>
|
159 | 157 | </ComponentGroup>
|
160 | 158 |
|
161 |
| - <ComponentGroup Id="ClangFeatures" Directory="toolchain_asserts_usr_share_clang"> |
| 159 | + <ComponentGroup Id="ClangFeatures" Directory="toolchain_$(VariantName)_usr_share_clang"> |
162 | 160 | <Component>
|
163 | 161 | <File Source="$(ToolchainRoot)\usr\share\clang\features.json" />
|
164 | 162 | </Component>
|
165 | 163 | </ComponentGroup>
|
166 | 164 |
|
167 |
| - <ComponentGroup Id="clang" Directory="toolchain_asserts_usr_bin"> |
| 165 | + <ComponentGroup Id="clang" Directory="toolchain_$(VariantName)_usr_bin"> |
168 | 166 | <ComponentGroupRef Id="ClangFeatures" />
|
169 | 167 |
|
170 | 168 | <!-- TODO(compnerd) can we use symbolic links to clang.exe instead? -->
|
|
195 | 193 | -->
|
196 | 194 | </ComponentGroup>
|
197 | 195 |
|
198 |
| - <ComponentGroup Id="lld" Directory="toolchain_asserts_usr_bin"> |
| 196 | + <ComponentGroup Id="lld" Directory="toolchain_$(VariantName)_usr_bin"> |
199 | 197 | <!-- TODO(compnerd) can we use symbolic links to lld.exe instead? -->
|
200 | 198 | <Component>
|
201 | 199 | <File Source="$(ToolchainRoot)\usr\bin\ld.lld.exe" />
|
|
215 | 213 | </ComponentGroup>
|
216 | 214 |
|
217 | 215 | <ComponentGroup Id="BlocksRuntime">
|
218 |
| - <Component Directory="toolchain_asserts_usr_bin"> |
| 216 | + <Component Directory="toolchain_$(VariantName)_usr_bin"> |
219 | 217 | <File Source="$(ToolchainRoot)\usr\bin\BlocksRuntime.dll" />
|
220 | 218 | </Component>
|
221 | 219 |
|
222 |
| - <Component Directory="toolchain_asserts_usr_lib"> |
| 220 | + <Component Directory="toolchain_$(VariantName)_usr_lib"> |
223 | 221 | <File Source="$(ToolchainRoot)\usr\lib\BlocksRuntime.lib" />
|
224 | 222 | </Component>
|
225 | 223 |
|
226 | 224 | <!-- TODO(compnerd) should we install the block headers? -->
|
227 | 225 | </ComponentGroup>
|
228 | 226 |
|
229 | 227 | <ComponentGroup Id="libdispatch">
|
230 |
| - <Component Directory="toolchain_asserts_usr_bin"> |
| 228 | + <Component Directory="toolchain_$(VariantName)_usr_bin"> |
231 | 229 | <File Source="$(ToolchainRoot)\usr\bin\dispatch.dll" />
|
232 | 230 | </Component>
|
233 | 231 |
|
234 |
| - <Component Directory="toolchain_asserts_usr_lib"> |
| 232 | + <Component Directory="toolchain_$(VariantName)_usr_lib"> |
235 | 233 | <File Source="$(ToolchainRoot)\usr\lib\dispatch.lib" />
|
236 | 234 | </Component>
|
237 | 235 |
|
238 | 236 | <!-- TODO(compnerd) should we install the dispatch headers? -->
|
239 | 237 | </ComponentGroup>
|
240 | 238 |
|
241 |
| - <ComponentGroup Id="SwiftCxx" Directory="toolchain_asserts_usr_lib_swift_swiftToCxx"> |
| 239 | + <ComponentGroup Id="SwiftCxx" Directory="toolchain_$(VariantName)_usr_lib_swift_swiftToCxx"> |
242 | 240 | <Component>
|
243 | 241 | <File Source="$(ToolchainRoot)\usr\lib\swift\swiftToCxx\_SwiftCxxInteroperability.h" />
|
244 | 242 | </Component>
|
|
249 | 247 | <File Source="$(ToolchainRoot)\usr\lib\swift\swiftToCxx\experimental-interoperability-version.json" />
|
250 | 248 | </Component>
|
251 | 249 |
|
252 |
| - <Component Directory="toolchain_asserts_usr_include_swift"> |
| 250 | + <Component Directory="toolchain_$(VariantName)_usr_include_swift"> |
253 | 251 | <File Source="$(ToolchainRoot)\usr\include\swift\bridging.modulemap" />
|
254 | 252 | </Component>
|
255 |
| - <Component Directory="toolchain_asserts_usr_include_swift"> |
| 253 | + <Component Directory="toolchain_$(VariantName)_usr_include_swift"> |
256 | 254 | <File Source="$(ToolchainRoot)\usr\include\swift\bridging" />
|
257 | 255 | </Component>
|
258 |
| - <Component Directory="toolchain_asserts_usr_include_swift"> |
| 256 | + <Component Directory="toolchain_$(VariantName)_usr_include_swift"> |
259 | 257 | <File Source="$(ToolchainRoot)\usr\include\module.modulemap" />
|
260 | 258 | </Component>
|
261 | 259 | </ComponentGroup>
|
262 | 260 |
|
263 | 261 | <ComponentGroup Id="SwiftDemangle">
|
264 |
| - <Component Directory="toolchain_asserts_usr_bin"> |
| 262 | + <Component Directory="toolchain_$(VariantName)_usr_bin"> |
265 | 263 | <File Source="$(ToolchainRoot)\usr\bin\swiftDemangle.dll" />
|
266 | 264 | </Component>
|
267 |
| - <Component Directory="toolchain_asserts_usr_lib"> |
| 265 | + <Component Directory="toolchain_$(VariantName)_usr_lib"> |
268 | 266 | <File Source="$(ToolchainRoot)\usr\lib\swiftDemangle.lib" />
|
269 | 267 | </Component>
|
270 | 268 | </ComponentGroup>
|
271 | 269 |
|
272 |
| - <ComponentGroup Id="SwiftEducationalNotes" Directory="toolchain_asserts_usr_share_doc_swift_diagnostics"> |
| 270 | + <ComponentGroup Id="SwiftEducationalNotes" Directory="toolchain_$(VariantName)_usr_share_doc_swift_diagnostics"> |
273 | 271 | <Component>
|
274 | 272 | <File Source="$(ToolchainRoot)\usr\share\doc\swift\diagnostics\dynamic-callable-requirements.md" />
|
275 | 273 | </Component>
|
|
308 | 306 | </Component>
|
309 | 307 | </ComponentGroup>
|
310 | 308 |
|
311 |
| - <ComponentGroup Id="SwiftFeatures" Directory="toolchain_asserts_usr_share_swift"> |
| 309 | + <ComponentGroup Id="SwiftFeatures" Directory="toolchain_$(VariantName)_usr_share_swift"> |
312 | 310 | <Component>
|
313 | 311 | <File Source="$(ToolchainRoot)\usr\share\swift\features.json" />
|
314 | 312 | </Component>
|
315 | 313 | </ComponentGroup>
|
316 | 314 |
|
317 |
| - <ComponentGroup Id="SwiftMigrator" Directory="toolchain_asserts_usr_lib_swift_migrator"> |
| 315 | + <ComponentGroup Id="SwiftMigrator" Directory="toolchain_$(VariantName)_usr_lib_swift_migrator"> |
318 | 316 | <Component>
|
319 | 317 | <File Source="$(ToolchainRoot)\usr\lib\swift\migrator\ios4.json" />
|
320 | 318 | </Component>
|
|
347 | 345 | </Component>
|
348 | 346 | </ComponentGroup>
|
349 | 347 |
|
350 |
| - <ComponentGroup Id="swift" Directory="toolchain_asserts_usr_bin"> |
| 348 | + <ComponentGroup Id="swift" Directory="toolchain_$(VariantName)_usr_bin"> |
351 | 349 | <ComponentGroupRef Id="SwiftCxx" />
|
352 | 350 | <ComponentGroupRef Id="SwiftDemangle" />
|
353 | 351 | <ComponentGroupRef Id="SwiftEducationalNotes" />
|
|
372 | 370 | </Component>
|
373 | 371 | </ComponentGroup>
|
374 | 372 |
|
375 |
| - <ComponentGroup Id="SwiftMacros" Directory="toolchain_asserts_usr_bin"> |
| 373 | + <ComponentGroup Id="SwiftMacros" Directory="toolchain_$(VariantName)_usr_bin"> |
376 | 374 | <Component>
|
377 | 375 | <File Source="$(ToolchainRoot)\usr\bin\ObservationMacros.dll" />
|
378 | 376 | </Component>
|
|
381 | 379 | </Component>
|
382 | 380 | </ComponentGroup>
|
383 | 381 |
|
384 |
| - <ComponentGroup Id="FoundationMacros" Directory="toolchain_asserts_usr_bin"> |
| 382 | + <ComponentGroup Id="FoundationMacros" Directory="toolchain_$(VariantName)_usr_bin"> |
385 | 383 | <Component>
|
386 | 384 | <File Source="$(ToolchainRoot)\usr\bin\FoundationMacros.dll" />
|
387 | 385 | </Component>
|
388 | 386 | </ComponentGroup>
|
389 | 387 |
|
390 |
| - <ComponentGroup Id="TestingMacros" Directory="toolchain_asserts_usr_bin"> |
| 388 | + <ComponentGroup Id="TestingMacros" Directory="toolchain_$(VariantName)_usr_bin"> |
391 | 389 | <Component>
|
392 | 390 | <File Source="$(ToolchainRoot)\usr\bin\TestingMacros.dll" />
|
393 | 391 | </Component>
|
394 | 392 | </ComponentGroup>
|
395 | 393 |
|
396 |
| - <ComponentGroup Id="argument_parser" Directory="toolchain_asserts_usr_bin"> |
| 394 | + <ComponentGroup Id="argument_parser" Directory="toolchain_$(VariantName)_usr_bin"> |
397 | 395 | <Component>
|
398 | 396 | <File Source="$(ToolchainRoot)\usr\bin\ArgumentParser.dll" />
|
399 | 397 | </Component>
|
400 | 398 | </ComponentGroup>
|
401 | 399 |
|
402 |
| - <ComponentGroup Id="tools_support_core" Directory="toolchain_asserts_usr_bin"> |
| 400 | + <ComponentGroup Id="tools_support_core" Directory="toolchain_$(VariantName)_usr_bin"> |
403 | 401 | <Component>
|
404 | 402 | <File Source="$(ToolchainRoot)\usr\bin\TSCBasic.dll" />
|
405 | 403 | </Component>
|
|
408 | 406 | </Component>
|
409 | 407 | </ComponentGroup>
|
410 | 408 |
|
411 |
| - <ComponentGroup Id="swift_driver" Directory="toolchain_asserts_usr_bin"> |
| 409 | + <ComponentGroup Id="swift_driver" Directory="toolchain_$(VariantName)_usr_bin"> |
412 | 410 | <!-- TODO(compnerd) can we use symbolic links to swift.exe instead? -->
|
413 | 411 | <Component>
|
414 | 412 | <File Name="swiftc.exe" Source="$(ToolchainRoot)\usr\bin\swift-driver.exe" />
|
|
432 | 430 | </Component>
|
433 | 431 | </ComponentGroup>
|
434 | 432 |
|
435 |
| - <ComponentGroup Id="compiler_swift_syntax" Directory="toolchain_asserts_usr_bin"> |
| 433 | + <ComponentGroup Id="compiler_swift_syntax" Directory="toolchain_$(VariantName)_usr_bin"> |
436 | 434 | <Component>
|
437 | 435 | <File Source="$(ToolchainRoot)\usr\bin\_CompilerSwiftBasicFormat.dll" />
|
438 | 436 | </Component>
|
|
474 | 472 | </Component>
|
475 | 473 | </ComponentGroup>
|
476 | 474 |
|
477 |
| - <ComponentGroup Id="swift_syntax" Directory="toolchain_asserts_usr_bin"> |
| 475 | + <ComponentGroup Id="swift_syntax" Directory="toolchain_$(VariantName)_usr_bin"> |
478 | 476 | <Component>
|
479 | 477 | <File Source="$(ToolchainRoot)\usr\bin\SwiftBasicFormat.dll" />
|
480 | 478 | </Component>
|
|
516 | 514 | </Component>
|
517 | 515 | </ComponentGroup>
|
518 | 516 |
|
519 |
| - <ComponentGroup Id="plugin_server" Directory="toolchain_asserts_usr_bin"> |
| 517 | + <ComponentGroup Id="plugin_server" Directory="toolchain_$(VariantName)_usr_bin"> |
520 | 518 | <Component>
|
521 | 519 | <File Source="$(ToolchainRoot)\usr\bin\swift-plugin-server.exe" />
|
522 | 520 | </Component>
|
|
525 | 523 | </Component>
|
526 | 524 | </ComponentGroup>
|
527 | 525 |
|
528 |
| - <ComponentGroup Id="mimalloc" Directory="toolchain_asserts_usr_bin"> |
| 526 | + <ComponentGroup Id="mimalloc" Directory="toolchain_$(VariantName)_usr_bin"> |
529 | 527 | <Component>
|
530 | 528 | <File Source="$(ToolchainRoot)\usr\bin\mimalloc.dll" />
|
531 | 529 | </Component>
|
|
539 | 537 | </ComponentGroup>
|
540 | 538 |
|
541 | 539 | <ComponentGroup Id="Configuration">
|
542 |
| - <Component Directory="ToolchainVersionedAsserts"> |
| 540 | + <Component Directory="$(ToolchainVersionedVariantDirectory)"> |
543 | 541 | <File Source="$(ToolchainRoot)\ToolchainInfo.plist" />
|
544 | 542 | </Component>
|
545 | 543 | </ComponentGroup>
|
546 | 544 |
|
547 | 545 | <ComponentGroup Id="EnvironmentVariables">
|
548 |
| - <Component Id="UserPathVariable" Condition="NOT ALLUSERS=1" Directory="toolchain_asserts_usr_bin" Guid="ab52b870-23ee-42e8-9581-3fcbdfb9228c"> |
549 |
| - <Environment Action="set" Name="Path" Part="last" Permanent="no" System="no" Value="[toolchain_asserts_usr_bin]" /> |
| 546 | + <Component Id="UserPathVariable" Condition="NOT ALLUSERS=1" Directory="toolchain_$(VariantName)_usr_bin" Guid="$(VariantEnvironmentComponentGUID)"> |
| 547 | + <Environment Action="set" Name="Path" Part="last" Permanent="no" System="no" Value="[toolchain_$(VariantName)_usr_bin]" /> |
550 | 548 | </Component>
|
551 | 549 | </ComponentGroup>
|
552 | 550 |
|
553 |
| - <Feature Id="BuildTools" AllowAbsent="no" Title="!(loc.BldAsserts_ProductName)"> |
| 551 | + <Feature Id="BuildTools" AllowAbsent="no" Title="$(VariantProductName)"> |
554 | 552 | <ComponentGroupRef Id="cmark_gfm" />
|
555 | 553 |
|
556 | 554 | <ComponentGroupRef Id="binutils" />
|
|
571 | 569 | <ComponentGroupRef Id="TestingMacros" />
|
572 | 570 | <ComponentGroupRef Id="mimalloc" />
|
573 | 571 |
|
574 |
| - <ComponentGroupRef Id="ClangResources_asserts" /> |
575 |
| - <ComponentGroupRef Id="SwiftClangResources_asserts" /> |
576 |
| - <ComponentGroupRef Id="SwiftStaticClangResources_asserts" /> |
| 572 | + <ComponentGroupRef Id="ClangResources_$(VariantName)" /> |
| 573 | + <ComponentGroupRef Id="SwiftClangResources_$(VariantName)" /> |
| 574 | + <ComponentGroupRef Id="SwiftStaticClangResources_$(VariantName)" /> |
577 | 575 |
|
578 | 576 | <ComponentGroupRef Id="Configuration" />
|
579 | 577 | <ComponentGroupRef Id="EnvironmentVariables" />
|
|
0 commit comments