diff options
author | crupest <crupest@outlook.com> | 2018-09-25 13:08:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-25 13:08:40 +0800 |
commit | 4b86554a0354d78efeb40e551eaccaac0fecd1d1 (patch) | |
tree | c8a73d848401f523ff91fe8ed1b0887aa88bbfb8 /script/build.ps1 | |
parent | cea138417c54d6cf8043b6334c22e3af957d26f8 (diff) | |
download | cru-4b86554a0354d78efeb40e551eaccaac0fecd1d1.tar.gz cru-4b86554a0354d78efeb40e551eaccaac0fecd1d1.tar.bz2 cru-4b86554a0354d78efeb40e551eaccaac0fecd1d1.zip |
Change the structure of project.
Diffstat (limited to 'script/build.ps1')
-rw-r--r-- | script/build.ps1 | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/script/build.ps1 b/script/build.ps1 index 125c305c..0a72d30c 100644 --- a/script/build.ps1 +++ b/script/build.ps1 @@ -1,8 +1,12 @@ +function CheckLastExitCode { + if ($LASTEXITCODE -ne 0) + { + exit $LASTEXITCODE + } +} + vcpkg.exe install folly:x64-windows fmt:x64-windows +& CheckLastExitCode -cd ..\CruUI -Remove-Item build -Recurse -ErrorAction Ignore -New-Item build -ItemType Directory -cd .\build -cmake -G "Visual Studio 15 2017 Win64" .. -cmake --build . +& "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 |