aboutsummaryrefslogtreecommitdiff
path: root/script/build.ps1
blob: 13f6831df51131baae7c6b5b863438c664d86cad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function CheckLastExitCode
{
    if ($LASTEXITCODE -ne 0)
    {
        exit $LASTEXITCODE
    }
}

vcpkg.exe install folly:x64-windows fmt:x64-windows
& CheckLastExitCode

vcpkg.exe integrate install
& CheckLastExitCode

& "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" CruUI.sln /target:Build /p:Platform=x64 /p:Configuration=Debug

if ($LASTEXITCODE -ne 0)
{
    & "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" CruUI.sln /target:Rebuild /p:Platform=x64 /p:Configuration=Debug
    & CheckLastExitCode
}