|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | + |
2 | 3 | <Include xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
3 | 4 |
|
| 5 | + <?if " '$(ProductArchitecture)' " == " 'arm64' "?> |
| 6 | + <?define ModuleTriple = 'aarch64-unknown-windows-msvc' ?> |
| 7 | + <?elseif " '$(ProductArchitecture)' " == " 'amd64' "?> |
| 8 | + <?define ModuleTriple = 'x86_64-unknown-windows-msvc' ?> |
| 9 | + <?endif?> |
| 10 | + |
4 | 11 | <Package |
5 | 12 | Language="1033" |
6 | 13 | Manufacturer="!(loc.ManufacturerName)" |
|
22 | 29 |
|
23 | 30 | <DirectoryRef Id="toolchain_$(VariantName)_usr_lib_swift"> |
24 | 31 | <Directory Name="pm"> |
25 | | - <Directory Id="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI" Name="ManifestAPI" /> |
26 | | - <Directory Id="toolchain_$(VariantName)_usr_lib_swift_pm_PluginAPI" Name="PluginAPI" /> |
| 32 | + <Directory Id="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI" Name="ManifestAPI"> |
| 33 | + <Directory Id="CompilerPluginSupport.swiftmodule" Name="CompilerPluginSupport.swiftmodule" /> |
| 34 | + <Directory Id="PackageDescription.swiftmodule" Name="PackageDescription.swiftmodule" /> |
| 35 | + </Directory> |
| 36 | + <Directory Id="toolchain_$(VariantName)_usr_lib_swift_pm_PluginAPI" Name="PluginAPI"> |
| 37 | + <Directory Id="PackagePlugin.swiftmodule" Name="PackagePlugin.swiftmodule" /> |
| 38 | + </Directory> |
27 | 39 | </Directory> |
28 | 40 | </DirectoryRef> |
29 | 41 |
|
|
150 | 162 | </Component> |
151 | 163 | </ComponentGroup> |
152 | 164 |
|
153 | | - <ComponentGroup Id="CompilerPluginSupport" Directory="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI"> |
154 | | - <Component> |
| 165 | + <ComponentGroup Id="CompilerPluginSupport"> |
| 166 | + <Component Directory="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI"> |
155 | 167 | <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\CompilerPluginSupport.dll" /> |
156 | 168 | </Component> |
157 | | - <Component> |
| 169 | + <Component Directory="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI"> |
158 | 170 | <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\CompilerPluginSupport.lib" /> |
159 | 171 | </Component> |
160 | | - <Component> |
161 | | - <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\CompilerPluginSupport.swiftdoc" /> |
| 172 | + <Component Directory="CompilerPluginSupport.swiftmodule"> |
| 173 | + <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\CompilerPluginSupport.swiftmodule\$(ModuleTriple).swiftdoc" /> |
162 | 174 | </Component> |
163 | | - <Component> |
164 | | - <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\CompilerPluginSupport.swiftmodule" /> |
| 175 | + <Component Directory="CompilerPluginSupport.swiftmodule"> |
| 176 | + <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\CompilerPluginSupport.swiftmodule\$(ModuleTriple).swiftinterface" /> |
165 | 177 | </Component> |
166 | 178 | </ComponentGroup> |
167 | 179 |
|
168 | | - <ComponentGroup Id="PackageDescription" Directory="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI"> |
169 | | - <Component> |
| 180 | + <ComponentGroup Id="PackageDescription"> |
| 181 | + <Component Directory="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI"> |
170 | 182 | <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\PackageDescription.dll" /> |
171 | 183 | </Component> |
172 | | - <Component> |
| 184 | + <Component Directory="toolchain_$(VariantName)_usr_lib_swift_pm_ManifestAPI"> |
173 | 185 | <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\PackageDescription.lib" /> |
174 | 186 | </Component> |
175 | | - <Component> |
176 | | - <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\PackageDescription.swiftdoc" /> |
| 187 | + <Component Directory="PackageDescription.swiftmodule"> |
| 188 | + <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\PackageDescription.swiftmodule\$(ModuleTriple).swiftdoc" /> |
177 | 189 | </Component> |
178 | | - <Component> |
179 | | - <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\PackageDescription.swiftmodule" /> |
| 190 | + <Component Directory="PackageDescription.swiftmodule"> |
| 191 | + <File Source="$(ToolchainRoot)\usr\lib\swift\pm\ManifestAPI\PackageDescription.swiftmodule\$(ModuleTriple).swiftinterface" /> |
180 | 192 | </Component> |
181 | 193 | </ComponentGroup> |
182 | 194 |
|
183 | | - <ComponentGroup Id="PackagePlugin" Directory="toolchain_$(VariantName)_usr_lib_swift_pm_PluginAPI"> |
184 | | - <Component> |
| 195 | + <ComponentGroup Id="PackagePlugin"> |
| 196 | + <Component Directory="toolchain_$(VariantName)_usr_lib_swift_pm_PluginAPI"> |
185 | 197 | <File Source="$(ToolchainRoot)\usr\lib\swift\pm\PluginAPI\PackagePlugin.dll" /> |
186 | 198 | </Component> |
187 | | - <Component> |
| 199 | + <Component Directory="toolchain_$(VariantName)_usr_lib_swift_pm_PluginAPI"> |
188 | 200 | <File Source="$(ToolchainRoot)\usr\lib\swift\pm\PluginAPI\PackagePlugin.lib" /> |
189 | 201 | </Component> |
190 | | - <Component> |
191 | | - <File Source="$(ToolchainRoot)\usr\lib\swift\pm\PluginAPI\PackagePlugin.swiftdoc" /> |
| 202 | + <Component Directory="PackagePlugin.swiftmodule"> |
| 203 | + <File Source="$(ToolchainRoot)\usr\lib\swift\pm\PluginAPI\PackagePlugin.swiftmodule\$(ModuleTriple).swiftdoc" /> |
192 | 204 | </Component> |
193 | | - <Component> |
194 | | - <File Source="$(ToolchainRoot)\usr\lib\swift\pm\PluginAPI\PackagePlugin.swiftmodule" /> |
| 205 | + <Component Directory="PackagePlugin.swiftmodule"> |
| 206 | + <File Source="$(ToolchainRoot)\usr\lib\swift\pm\PluginAPI\PackagePlugin.swiftmodule\$(ModuleTriple).swiftinterface" /> |
195 | 207 | </Component> |
196 | 208 | </ComponentGroup> |
197 | 209 |
|
|
653 | 665 | </Component> |
654 | 666 | </ComponentGroup> |
655 | 667 |
|
656 | | - <ComponentGroup Id="package_manager" Directory="toolchain_$(VariantName)_usr_bin"> |
657 | | - <ComponentGroupRef Id="CompilerPluginSupport" /> |
658 | | - <ComponentGroupRef Id="PackageDescription" /> |
659 | | - <ComponentGroupRef Id="PackagePlugin" /> |
660 | | - |
| 668 | + <ComponentGroup Id="PackageManager" Directory="toolchain_$(VariantName)_usr_bin"> |
661 | 669 | <Component> |
662 | 670 | <File Source="$(ToolchainRoot)\usr\bin\swift-build.exe" /> |
663 | 671 | </Component> |
|
741 | 749 | <ComponentGroupRef Id="collections" /> |
742 | 750 | <ComponentGroupRef Id="llbuild" /> |
743 | 751 | <ComponentGroupRef Id="SwiftBuild" /> |
744 | | - <ComponentGroupRef Id="package_manager" /> |
| 752 | + <ComponentGroupRef Id="PackageManager" /> |
| 753 | + <!-- Package Manager Manifest Runtime --> |
| 754 | + <ComponentGroupRef Id="CompilerPluginSupport" /> |
| 755 | + <ComponentGroupRef Id="PackageDescription" /> |
| 756 | + <ComponentGroupRef Id="PackagePlugin" /> |
745 | 757 |
|
746 | 758 | <ComponentGroupRef Id="DocC" /> |
747 | 759 | <?if $(INCLUDE_SWIFT_DOCC) = True?> |
|
0 commit comments