From 4b86554a0354d78efeb40e551eaccaac0fecd1d1 Mon Sep 17 00:00:00 2001 From: crupest Date: Tue, 25 Sep 2018 13:08:40 +0800 Subject: Change the structure of project. --- script/build.ps1 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'script') 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 -- cgit v1.2.3