Skip to content

Commit cd3d2bf

Browse files
committed
WiX: package _InternalSwiftStaticMirror on Windows
Include the static mirror library as part of the debugging tools. This library is useful for building diagnostics tooling and is not currently used in the core toolchain for building code or performing CI tasks.
1 parent 591b3a8 commit cd3d2bf

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

platforms/Windows/dbg/dbg.wxs

+26
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
<WixVariable Id="SideBySidePackageUpgradeCode" Value="$(DbgUpgradeCode)" />
1313
<FeatureGroupRef Id="SideBySideUpgradeStrategy" />
1414

15+
<DirectoryRef Id="_usr_include">
16+
<Directory Id="_usr_include__InternalSwiftStaticMirror" Name="_InternalSwiftStaticMirror" />
17+
</DirectoryRef>
18+
1519
<DirectoryRef Id="_usr_lib">
1620
<Directory Name="site-packages">
1721
<Directory Id="_usr_lib_site_packages_lldb" Name="lldb">
@@ -111,13 +115,35 @@
111115
<?endif?>
112116
</ComponentGroup>
113117

118+
<ComponentGroup Id="_InternalSwiftStaticMirror" Directory="_usr_include__InternalSwiftStaticMirror">
119+
<Component Directory="_usr_bin">
120+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\_InternalSwiftStaticMirror.dll" />
121+
</Component>
122+
123+
<Component Directory="_usr_lib">
124+
<File Source="$(TOOLCHAIN_ROOT)\usr\lib\swift\windows\_InternalSwiftStaticMirror.lib" />
125+
</Component>
126+
127+
<Component>
128+
<File Source="$(TOOLCHAIN_ROOT)\usr\lib\swift\_InternalSwiftStaticMirror\BinaryScan.h" />
129+
</Component>
130+
<Component>
131+
<File Source="$(TOOLCHAIN_ROOT)\usr\lib\swift\_InternalSwiftStaticMirror\module.modulemap" />
132+
</Component>
133+
<Component>
134+
<File Source="$(TOOLCHAIN_ROOT)\usr\lib\swift\_InternalSwiftStaticMirror\StaticMirrorMacros.h" />
135+
</Component>
136+
</ComponentGroup>
137+
114138
<Feature Id="DebuggingTools" AllowAbsent="no" Title="!(loc.Dbg_ProductName)">
115139
<ComponentGroupRef Id="lldb" />
116140
<ComponentGroupRef Id="lldb_server" />
117141

118142
<ComponentGroupRef Id="swift_repl" />
119143
<ComponentGroupRef Id="swift_inspect" />
120144

145+
<ComponentGroupRef Id="_InternalSwiftStaticMirror" />
146+
121147
<ComponentGroupRef Id="VersionedDirectoryCleanup" />
122148
</Feature>
123149
</Package>

0 commit comments

Comments
 (0)