Skip to content

Commit a936786

Browse files
committed
[Windows/Android] Add swift-testing
(cherry picked from commit 852784a)
1 parent e75de0b commit a936786

File tree

2 files changed

+38
-3
lines changed

2 files changed

+38
-3
lines changed

platforms/Windows/bld/bld.wxs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@
324324
<Component>
325325
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\SwiftMacros.dll" />
326326
</Component>
327+
<Component>
328+
<File Source="$(TOOLCHAIN_ROOT)\usr\bin\TestingMacros.dll" />
329+
</Component>
327330
</ComponentGroup>
328331

329332
<ComponentGroup Id="argument_parser" Directory="_usr_bin">

platforms/Windows/sdk/sdk.wxs

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
└─ Windows.platform
3535
└─ Developer
3636
├─ Library
37-
│ └─ XCTest-development
37+
│ ├─ XCTest-development
38+
│ │ └─ ...
39+
│ └─ Testing-development
3840
│ └─ ...
3941
└─ SDKs
4042
└─ Windows.sdk
@@ -44,11 +46,11 @@
4446
<Directory Id="WindowsPlatform" Name="Windows.platform">
4547
<Directory Name="Developer">
4648
<Directory Name="Library">
47-
<!-- XCTest -->
4849
<!--
4950
FIXME(compnerd) this should actually be the proper version
50-
of XCTest, and needs to be reflected in the plist as well.
51+
of XCTest and Testing, and needs to be reflected in the plist as well.
5152
-->
53+
<!-- XCTest -->
5254
<Directory Name="XCTest-development">
5355
<Directory Name="usr">
5456
<Directory Id="XCTest_usr_bin" Name="$(ArchBinDir)" />
@@ -62,6 +64,20 @@
6264
</Directory>
6365
</Directory>
6466
</Directory>
67+
<!-- Testing -->
68+
<Directory Name="Testing-development">
69+
<Directory Name="usr">
70+
<Directory Id="Testing_usr_bin" Name="$(ArchBinDir)" />
71+
<Directory Name="lib">
72+
<Directory Name="swift">
73+
<Directory Name="windows">
74+
<Directory Id="Testing_usr_lib_swift_windows_ARCH" Name="$(ArchArchDir)" />
75+
<Directory Id="Testing.swiftmodule" Name="Testing.swiftmodule" />
76+
</Directory>
77+
</Directory>
78+
</Directory>
79+
</Directory>
80+
</Directory>
6581
</Directory>
6682
<Directory Name="SDKs">
6783
<!-- Windows.sdk -->
@@ -130,6 +146,21 @@
130146
</Component>
131147
</ComponentGroup>
132148

149+
<ComponentGroup Id="Testing">
150+
<Component Directory="Testing_usr_bin">
151+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\bin\Testing.dll" />
152+
</Component>
153+
<Component Directory="Testing_usr_lib_swift_windows_ARCH">
154+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\lib\swift\windows\Testing.lib" />
155+
</Component>
156+
<Component Directory="Testing.swiftmodule">
157+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\lib\swift\windows\Testing.swiftmodule\$(ArchTriple).swiftdoc" />
158+
</Component>
159+
<Component Directory="Testing.swiftmodule">
160+
<File Source="$(PLATFORM_ROOT)\Developer\Library\Testing-development\usr\lib\swift\windows\Testing.swiftmodule\$(ArchTriple).swiftmodule" />
161+
</Component>
162+
</ComponentGroup>
163+
133164
<ComponentGroup Id="SwiftRemoteMirror" Directory="WindowsSDK_usr_include_swift_SwiftRemoteMirror">
134165
<Component>
135166
<File Source="$(SDK_ROOT)\usr\include\swift\SwiftRemoteMirror\MemoryReaderInterface.h" />
@@ -1228,6 +1259,7 @@
12281259
<!-- Features -->
12291260
<Feature Id="SDK" AllowAbsent="no" Title="!(loc.Sdk_ProductName_$(ProductArchitecture))">
12301261
<ComponentGroupRef Id="XCTest" />
1262+
<ComponentGroupRef Id="Testing" />
12311263
<ComponentGroupRef Id="SwiftRemoteMirror" />
12321264
<ComponentGroupRef Id="BlocksRuntime" />
12331265
<ComponentGroupRef Id="libdispatch" />

0 commit comments

Comments
 (0)