Skip to content

Commit 3e6506c

Browse files
committed
WiX: add toolchain and devtools manifest for ARM64
Add the manifests for the ARM64 toolchain which is required to actually produce the ARM64 installer for the Windows toolchain.
1 parent 9fe03fb commit 3e6506c

File tree

2 files changed

+1122
-0
lines changed

2 files changed

+1122
-0
lines changed

platforms/Windows/devtools-arm64.wxs

Lines changed: 265 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
3+
<Product Id="*" Language="1033" Manufacturer="swift.org" Name="Swift Developer Tools for Windows aarch64" UpgradeCode="" Version="$(var.ProductVersion)">
4+
<Package Comments="Copyright (c) 2021-2022 Swift Open Source Project" Compressed="yes" Description="Swift Developer Tools for Windows aarch64" InstallScope="perMachine" Manufacturer="swift.org" />
5+
6+
<Media Id="1" Cabinet="devtools.cab" EmbedCab="yes" />
7+
<?ifdef INCLUDE_DEBUG_INFO ?>
8+
<Media Id="2" Cabinet="PDBs.cab" EmbedCab="yes" />
9+
<?endif?>
10+
11+
<!-- Directory Structure -->
12+
<Directory Id="TARGETDIR" Name="SourceDir">
13+
<Directory Id="INSTALLDIR">
14+
<Directory Id="Developer" Name="Developer">
15+
<Directory Id="Toolchains" Name="Toolchains">
16+
<Directory Id="xctoolchain" Name="unknown-Asserts-development.xctoolchain">
17+
<Directory Id="_usr" Name="usr">
18+
<Directory Id="_usr_bin" Name="bin">
19+
</Directory>
20+
<Directory Id="_usr_lib" Name="lib">
21+
<!-- FIXME(compnerd) should we include the SPM import libraries? -->
22+
<Directory Id="_usr_lib_swift" Name="swift">
23+
<Directory Id="_usr_lib_swift_pm" Name="pm">
24+
<Directory Id="_usr_lib_swift_pm_ManifestAPI" Name="ManifestAPI">
25+
</Directory>
26+
<Directory Id="_usr_lib_swift_pm_PluginAPI" Name="PluginAPI">
27+
</Directory>
28+
</Directory>
29+
</Directory>
30+
</Directory>
31+
</Directory>
32+
</Directory>
33+
</Directory>
34+
</Directory>
35+
</Directory>
36+
</Directory>
37+
38+
<SetDirectory Id="INSTALLDIR" Value="[WindowsVolume]Library">
39+
NOT INSTALLDIR
40+
</SetDirectory>
41+
42+
<!-- Components -->
43+
<ComponentGroup Id="SwiftCrypto">
44+
<Component Id="Crypto.dll" Directory="_usr_bin" Guid="b70fbf9e-006b-4b05-9450-8b139fa90da1">
45+
<File Id="Crypto.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Crypto.dll" Checksum="yes" />
46+
</Component>
47+
</ComponentGroup>
48+
49+
<?ifdef INCLUDE_DEBUG_INFO ?>
50+
<ComponentGroup Id="SwiftCryptoDebugInfo">
51+
<Component Id="Crypto.pdb" Directory="_usr_bin" Guid="13765cd7-5212-4ce8-a3f0-83168b4e8afc">
52+
<File Id="Crypto.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Crypto.pdb" Checksum="yes" />
53+
</Component>
54+
</ComponentGroup>
55+
<?endif?>
56+
57+
<ComponentGroup Id="SwiftCollections">
58+
<Component Id="Collections.dll" Directory="_usr_bin" Guid="b705e7a1-698a-4608-b53f-48578380696c">
59+
<File Id="Collections.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Collections.dll" Checksum="yes" />
60+
</Component>
61+
<Component Id="DequeModule.dll" Directory="_usr_bin" Guid="7459f8ec-563c-4220-ae5a-3c52a31b2a93">
62+
<File Id="DequeModule.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\DequeModule.dll" Checksum="yes" />
63+
</Component>
64+
<Component Id="OrderedCollections.dll" Directory="_usr_bin" Guid="7437801f-15d1-43b2-8649-7c3cdfeeb0d7">
65+
<File Id="OrderedCollections.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\OrderedCollections.dll" Checksum="yes" />
66+
</Component>
67+
</ComponentGroup>
68+
69+
<?ifdef INCLUDE_DEBUG_INFO ?>
70+
<ComponentGroup Id="SwiftCollectionsDebugInfo">
71+
<Component Id="Collections.pdb" Directory="_usr_bin" Guid="d33e610e-171b-445b-bfbe-8f4dadaa8741">
72+
<File Id="Collections.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Collections.pdb" Checksum="yes" />
73+
</Component>
74+
<Component Id="DequeModule.pdb" Directory="_usr_bin" Guid="779c0307-95fe-4cf8-9631-fe2de10e6031">
75+
<File Id="DequeModule.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\DequeModule.pdb" Checksum="yes" />
76+
</Component>
77+
<Component Id="OrderedCollections.pdb" Directory="_usr_bin" Guid="0546f5b7-10c3-4766-968b-0add6b08c3e1">
78+
<File Id="OrderedCollections.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\OrderedCollections.pdb" Checksum="yes" />
79+
</Component>
80+
</ComponentGroup>
81+
<?endif?>
82+
83+
<ComponentGroup Id="SwiftSystem">
84+
<Component Id="SystemPackage.dll" Directory="_usr_bin" Guid="3a77763d-f9fb-4f1e-a056-f785bb1912e9">
85+
<File Id="SystemPackage.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\SystemPackage.dll" Checksum="yes" />
86+
</Component>
87+
</ComponentGroup>
88+
89+
<?ifdef INCLUDE_DEBUG_INFO ?>
90+
<ComponentGroup Id="SwiftSystemDebugInfo">
91+
<Component Id="SystemPackage.pdb" Directory="_usr_bin" Guid="157a0be9-c296-4244-8975-7125fb8306d4">
92+
<File Id="SystemPackage.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\SystemPackage.pdb" Checksum="yes" />
93+
</Component>
94+
</ComponentGroup>
95+
<?endif?>
96+
97+
<ComponentGroup Id="SwiftPackageManager">
98+
<Component Id="Basics.dll" Directory="_usr_bin" Guid="03e5871a-9ded-4010-9708-6217f294edc4">
99+
<File Id="Basics.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Basics.dll" Checksum="yes" />
100+
</Component>
101+
<Component Id="Build.dll" Directory="_usr_bin" Guid="4a7280fc-5018-485a-b15f-dec6b19eb5d1">
102+
<File Id="Build.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Build.dll" Checksum="yes" />
103+
</Component>
104+
<Component Id="Commands.dll" Directory="_usr_bin" Guid="b5a08920-f173-4a1b-8b80-dae0c3d21975">
105+
<File Id="Commands.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Commands.dll" Checksum="yes" />
106+
</Component>
107+
<Component Id="PackageGraph.dll" Directory="_usr_bin" Guid="0f4cd16f-a931-401c-9b49-9fc988e8d87e">
108+
<File Id="PackageGraph.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\PackageGraph.dll" Checksum="yes" />
109+
</Component>
110+
<Component Id="PackageLoading.dll" Directory="_usr_bin" Guid="9f086102-597f-448f-ac82-127138fba0ba">
111+
<File Id="PackageLoading.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\PackageLoading.dll" Checksum="yes" />
112+
</Component>
113+
<Component Id="PackageModel.dll" Directory="_usr_bin" Guid="faa15fdd-9ef2-46d8-af96-7a26a6c756f2">
114+
<File Id="PackageModel.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\PackageModel.dll" Checksum="yes" />
115+
</Component>
116+
<Component Id="SPMBuildCore.dll" Directory="_usr_bin" Guid="221b7bd2-9f99-4ef0-9a7e-b261e9370a77">
117+
<File Id="SPMBuildCore.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\SPMBuildCore.dll" Checksum="yes" />
118+
</Component>
119+
<Component Id="Workspace.dll" Directory="_usr_bin" Guid="9740f123-1701-47d1-b18f-6ff89ac31edd">
120+
<File Id="Workspace.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Workspace.dll" Checksum="yes" />
121+
</Component>
122+
123+
<Component Id="swift_build.exe" Directory="_usr_bin" Guid="a1feb617-1b46-446c-8002-08729f3fa267">
124+
<File Id="swift_build.exe" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-build.exe" Checksum="yes" />
125+
</Component>
126+
<Component Id="swift_package.exe" Directory="_usr_bin" Guid="2d46cc7c-1831-4caf-a225-9d2f283b4c10">
127+
<File Id="swift_package.exe" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-package.exe" Checksum="yes" />
128+
</Component>
129+
<Component Id="swift_run.exe" Directory="_usr_bin" Guid="247b8727-71d3-4e80-bcaf-917a478598db">
130+
<File Id="swift_run.exe" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-run.exe" Checksum="yes" />
131+
</Component>
132+
<Component Id="swift_test.exe" Directory="_usr_bin" Guid="ba9a9e55-d620-49b0-8647-5fa1778e3693">
133+
<File Id="swift_test.exe" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-test.exe" Checksum="yes" />
134+
</Component>
135+
136+
<Component Id="PackageDescription.dll" Directory="_usr_lib_swift_pm_ManifestAPI" Guid="f182c092-90b2-453e-b820-445d76c29477">
137+
<File Id="PackageDescription.dll" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\ManifestAPI\PackageDescription.dll" Checksum="yes" />
138+
</Component>
139+
<Component Id="PackageDescription.lib" Directory="_usr_lib_swift_pm_ManifestAPI" Guid="cac0bbb7-184d-4b57-a414-e727660bb004">
140+
<File Id="PackageDescription.lib" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\ManifestAPI\PackageDescription.lib" Checksum="yes" />
141+
</Component>
142+
<Component Id="PackageDescription.swiftdoc" Directory="_usr_lib_swift_pm_ManifestAPI" Guid="488bcd93-32c6-422d-a2b3-45a4913b4dc8">
143+
<File Id="PackageDescription.swiftdoc" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\ManifestAPI\PackageDescription.swiftdoc" Checksum="yes" />
144+
</Component>
145+
<Component Id="PackageDescription.swiftmodule" Directory="_usr_lib_swift_pm_ManifestAPI" Guid="47fdf73a-dbfe-47b9-973f-ca5b8856b162">
146+
<File Id="PackageDescription.swiftmodule" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\ManifestAPI\PackageDescription.swiftmodule" Checksum="yes" />
147+
</Component>
148+
149+
<Component Id="PackagePlugin.dll" Directory="_usr_lib_swift_pm_PluginAPI" Guid="7ca18c18-6efa-44e9-af2c-b0196dfb9778">
150+
<File Id="PackagePlugin.dll" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\PluginAPI\PackagePlugin.dll" Checksum="yes" />
151+
</Component>
152+
<Component Id="PackagePlugin.lib" Directory="_usr_lib_swift_pm_PluginAPI" Guid="4b4345d1-3ab0-4742-bdd2-e3d61df5a74e">
153+
<File Id="PackagePlugin.lib" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\PluginAPI\PackagePlugin.lib" Checksum="yes" />
154+
</Component>
155+
<Component Id="PackagePlugin.swiftdoc" Directory="_usr_lib_swift_pm_PluginAPI" Guid="d8427dc3-4879-40bb-8f8b-439ef9c09143">
156+
<File Id="PackagePlugin.swiftdoc" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\PluginAPI\PackagePlugin.swiftdoc" Checksum="yes" />
157+
</Component>
158+
<Component Id="PackagePlugin.swiftmodule" Directory="_usr_lib_swift_pm_PluginAPI" Guid="250941c3-16a6-48f5-9142-1629c107ee7a">
159+
<File Id="PackagePlugin.swiftmodule" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\PluginAPI\PackagePlugin.swiftmodule" Checksum="yes" />
160+
</Component>
161+
</ComponentGroup>
162+
163+
<?ifdef INCLUDE_DEBUG_INFO ?>
164+
<ComponentGroup Id="SwiftPackageManagerDebugInfo">
165+
<Component Id="Basics.pdb" Directory="_usr_bin" Guid="2fdea2ca-5498-4cb1-bf74-b771321a0b2b">
166+
<File Id="Basics.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Basics.pdb" Checksum="yes" />
167+
</Component>
168+
<Component Id="Build.pdb" Directory="_usr_bin" Guid="cbc19845-fd86-4d2a-977e-5ae49de856d4">
169+
<File Id="Build.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Build.pdb" Checksum="yes" />
170+
</Component>
171+
<Component Id="Commands.pdb" Directory="_usr_bin" Guid="345f96d2-f9ac-4c83-8722-855686401a9d">
172+
<File Id="Commands.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Commands.pdb" Checksum="yes" />
173+
</Component>
174+
<Component Id="PackageGraph.pdb" Directory="_usr_bin" Guid="71a32056-bb8d-4d9b-ab76-e25ee6fd04bc">
175+
<File Id="PackageGraph.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\PackageGraph.pdb" Checksum="yes" />
176+
</Component>
177+
<Component Id="PackageLoading.pdb" Directory="_usr_bin" Guid="991958ab-0f7b-4547-8286-732671282ec1">
178+
<File Id="PackageLoading.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\PackageLoading.pdb" Checksum="yes" />
179+
</Component>
180+
<Component Id="PackageModel.pdb" Directory="_usr_bin" Guid="511fd24a-f9b9-4c7b-97c1-5845dfc308d0">
181+
<File Id="PackageModel.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\PackageModel.pdb" Checksum="yes" />
182+
</Component>
183+
<Component Id="SPMBuildCore.pdb" Directory="_usr_bin" Guid="3f66ca4f-d560-496f-9f8f-bc350a559ce5">
184+
<File Id="SPMBuildCore.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\SPMBuildCore.pdb" Checksum="yes" />
185+
</Component>
186+
<Component Id="Workspace.pdb" Directory="_usr_bin" Guid="cf7d3735-03f9-4d17-89b3-c051d1cc3c5a">
187+
<File Id="Workspace.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\Workspace.pdb" Checksum="yes" />
188+
</Component>
189+
190+
<Component Id="swift_build.pdb" Directory="_usr_bin" Guid="84d4c04b-158f-446b-aa5e-9ffe3318dd02">
191+
<File Id="swift_build.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-build.pdb" Checksum="yes" />
192+
</Component>
193+
<Component Id="swift_package.pdb" Directory="_usr_bin" Guid="7038d860-c614-4c74-b2ce-d6dc84f8f638">
194+
<File Id="swift_package.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-package.pdb" Checksum="yes" />
195+
</Component>
196+
<Component Id="swift_run.pdb" Directory="_usr_bin" Guid="d5eb453e-1e43-4492-b9d6-e3c08b8f7b80">
197+
<File Id="swift_run.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-run.pdb" Checksum="yes" />
198+
</Component>
199+
<Component Id="swift_test.pdb" Directory="_usr_bin" Guid="a9240a6b-9934-4356-80e9-5311d6c35fa5">
200+
<File Id="swift_test.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\swift-test.pdb" Checksum="yes" />
201+
</Component>
202+
203+
<Component Id="PackageDescription.pdb" Directory="_usr_lib_swift_pm_ManifestAPI" Guid="aabedd70-4b90-46ef-8db6-9724c2340f81">
204+
<File Id="PackageDescription.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\ManifestAPI\PackageDescription.pdb" Checksum="yes" />
205+
</Component>
206+
207+
<Component Id="PackagePlugin.pdb" Directory="_usr_lib_swift_pm_ManifestAPI" Guid="bbf77ff9-fa10-4fe3-ab4b-3cbf95fa6be9">
208+
<File Id="PackagePlugin.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\lib\swift\pm\pluginAPI\PackagePlugin.pdb" Checksum="yes" />
209+
</Component>
210+
</ComponentGroup>
211+
<?endif?>
212+
213+
<ComponentGroup Id="IndexStoreDB">
214+
<Component Id="IndexStoreDB.dll" Directory="_usr_bin" Guid="cc4d9542-7334-4923-803d-457930d3234c">
215+
<File Id="IndexStoreDB.dll" Source="$(var.DEVTOOLS_ROOT)\usr\bin\IndexStoreDB.dll" Checksum="yes" />
216+
</Component>
217+
</ComponentGroup>
218+
219+
<?ifdef INCLUDE_DEBUG_INFO ?>
220+
<ComponentGroup Id="IndexStoreDBDebugInfo">
221+
<Component Id="IndexStoreDB.pdb" Directory="_usr_bin" Guid="f737eb31-c852-46f2-9f98-cb145362621d">
222+
<File Id="IndexStoreDB.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\IndexStoreDB.pdb" Checksum="yes" />
223+
</Component>
224+
</ComponentGroup>
225+
<?endif?>
226+
227+
<ComponentGroup Id="SourceKitLSP">
228+
<Component Id="sourcekit_lsp.exe" Directory="_usr_bin" Guid="1e4d7fbd-a435-4d11-bd17-2dec0b235c28">
229+
<File Id="sourcekit_lsp.exe" Source="$(var.DEVTOOLS_ROOT)\usr\bin\sourcekit-lsp.exe" Checksum="yes" />
230+
</Component>
231+
</ComponentGroup>
232+
233+
<?ifdef INCLUDE_DEBUG_INFO ?>
234+
<ComponentGroup Id="SourceKitLSPDebugInfo">
235+
<Component Id="sourcekit_lsp.pdb" Directory="_usr_bin" Guid="3a72124e-6b23-42ac-be52-c1ac2d7972f6">
236+
<File Id="soucekit_lsp.pdb" Source="$(var.DEVTOOLS_ROOT)\usr\bin\sourcekit-lsp.pdb" Checksum="yes" />
237+
</Component>
238+
</ComponentGroup>
239+
<?endif?>
240+
241+
<Feature Id="DeveloperTools" Absent="disallow" AllowAdvertise="yes" ConfigurableDirectory="INSTALLDIR" Description="Swift Developer Tools for Windows aarch64" Level="1" Title="Swift Developer Tools (Windows aarch64)">
242+
<ComponentGroupRef Id="SwiftCrypto" />
243+
<ComponentGroupRef Id="SwiftCollections" />
244+
<ComponentGroupRef Id="SwiftSystem" />
245+
<ComponentGroupRef Id="SwiftPackageManager" />
246+
<ComponentGroupRef Id="SourceKitLSP" />
247+
<ComponentGroupRef Id="IndexStoreDB" />
248+
249+
<?ifdef INCLUDE_DEBUG_INFO ?>
250+
<Feature Id="DebugInfo" Absent="allow" AllowAdvertise="yes" Description="Debug Information for Swift Developer Tools for Windows aarch64" Level="0" Title="Debug Info">
251+
<Condition Level="1">INSTALL_DEBUGINFO</Condition>
252+
<ComponentGroupRef Id="SwiftCryptoDebugInfo" />
253+
<ComponentGroupRef Id="SwiftCollectionsDebugInfo" />
254+
<ComponentGroupRef Id="SwiftSystemDebugInfo" />
255+
<ComponentGroupRef Id="SwiftPackageManagerDebugInfo" />
256+
<ComponentGroupRef Id="SourceKitLSPDebugInfo" />
257+
<ComponentGroupRef Id="IndexStoreDBDebugInfo" />
258+
</Feature>
259+
<?endif?>
260+
</Feature>
261+
262+
<!-- UI -->
263+
<UI />
264+
</Product>
265+
</Wix>

0 commit comments

Comments
 (0)