Files
mob/bootstrap.ps1
T

20 lines
476 B
PowerShell
Raw Normal View History

$root = $PSScriptRoot
if (!$root) {
2023-08-30 15:52:35 +02:00
$root = "."
}
cmake -B $root/build $root | Out-Null
cmake --build $root/build --config Release -- `
"-p:UseMultiToolTask=true" `
"-noLogo" `
"-p:EnforceProcessCountAcrossBuilds=true" `
"-clp:ErrorsOnly;Verbosity=minimal"
2020-05-20 18:28:49 +01:00
if (! $?) {
Write-Error "Build failed"
exit $LastExitCode
}
2023-08-30 15:52:35 +02:00
Copy-Item "$root\build\src\Release\mob.exe" "$root\mob.exe"
Write-Output "run ``.\mob -d prefix/path build`` to start building"