Skip to content

Commit 13ed5bc

Browse files
committed
Add option to bootstrap.ps1 for build config.
1 parent 29eb8a7 commit 13ed5bc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

bootstrap.ps1

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
param([switch]$Verbose)
1+
param(
2+
[switch]
3+
$Verbose,
4+
[ValidateSet("Debug", "RelWithDebInfo", "Release")]
5+
[string]
6+
$Config = "Release"
7+
)
28

39
$root = $PSScriptRoot
410
if (!$root) {
@@ -23,7 +29,7 @@ if (! $installationPath) {
2329
$opts = ""
2430
$opts += " $root\build\mob.sln"
2531
$opts += " -m"
26-
$opts += " -p:Configuration=Release"
32+
$opts += " -p:Configuration=${Config}"
2733
$opts += " -noLogo"
2834
$opts += " -p:UseMultiToolTask=true"
2935
$opts += " -p:EnforceProcessCountAcrossBuilds=true"
@@ -45,5 +51,5 @@ if (! $?) {
4551
exit $LastExitCode
4652
}
4753

48-
Copy-Item "$root\build\src\Release\mob.exe" "$root\mob.exe"
54+
Copy-Item "$root\build\src\${Config}\mob.exe" "$root\mob.exe"
4955
Write-Output "run ``.\mob -d prefix/path build`` to start building"

0 commit comments

Comments
 (0)