Skip to content

Commit 93b2167

Browse files
committed
build.ps1: introduce new -AndroidSDKVersions and -WindowsSDKVersions
Re-create the old named parameter with the new purpose of control over the SDKs to generate.
1 parent a7921bb commit 93b2167

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

utils/build.ps1

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,15 @@ The API Level to target when building the Android SDKs
3838
.PARAMETER Android
3939
When set, build android SDKs.
4040
41+
.PARAMETER AndroidSDKVersions
42+
An array of SDKs to build for the Android OS.
43+
4144
.PARAMETER AndroidSDKArchitectures
4245
An array of architectures for which the Android Swift SDK should be built.
4346
47+
.PARAMETER WindowsSDKVersions
48+
An array of SDKs to build for the Windows OS.
49+
4450
.PARAMETER WindowsSDKArchitectures
4551
An array of architectures for which the Windows Swift SDK should be built.
4652
@@ -106,7 +112,7 @@ Whether to run swift-foundation and swift-corelibs-foundation tests in a debug o
106112
PS> .\Build.ps1
107113
108114
.EXAMPLE
109-
PS> .\Build.ps1 -WindowsSDKs x64 -ProductVersion 1.2.3 -Test foundation,xctest
115+
PS> .\Build.ps1 -WindowsSDKArchitectures x64 -ProductVersion 1.2.3 -Test foundation,xctest
110116
#>
111117
[CmdletBinding(PositionalBinding = $false)]
112118
param
@@ -120,7 +126,9 @@ param
120126
[string] $SwiftDebugFormat = "dwarf",
121127
[ValidateRange(1, 36)]
122128
[int] $AndroidAPILevel = 28,
129+
[string[]] $AndroidSDKVersions = @("Android", "AndroidExperimental"),
123130
[string[]] $AndroidSDKArchitectures = @(),
131+
[string[]] $WindowsSDKVersions = @("Windows", "WindowsExperimental"),
124132
[string[]] $WindowsSDKArchitectures = @("X64","X86","Arm64"),
125133
[string] $ProductVersion = "0.0.0",
126134
[string] $ToolchainIdentifier = $(if ($env:TOOLCHAIN_VERSION) { $env:TOOLCHAIN_VERSION } else { "$env:USERNAME.development" }),

0 commit comments

Comments
 (0)