Updated README file.
[HashSet.git] / make.cmd
blob4ad6e36a327d81d794a938f196232259dc5d3a03
1 @echo off
2 setlocal enabledelayedexpansion
3 cd /d "%~dp0"
5 if "%MSVC_PATH%"=="" (
6 set "MSVC_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"
9 if not exist "%MSVC_PATH%\Auxiliary\Build\vcvarsall.bat" (
10 echo MSVC not found. Please check your MSVC_PATH and try again^^!
11 pause
12 goto:eof
15 for %%p in (x86,x64,ARM64) do (
16 call "%MSVC_PATH%\Auxiliary\Build\vcvarsall.bat" %%p
17 for %%c in (Static,Shared,Debug) do (
18 echo.
19 echo ------------------------------------------------------------------------------
20 echo %%p %%c
21 echo ------------------------------------------------------------------------------
22 for %%t in (Clean,Rebuild,Build) do (
23 MSBuild.exe /property:Configuration=%%c /property:Platform=%%p /target:%%t /verbosity:normal "%CD%\HashSet.sln"
24 if not "!ERRORLEVEL!"=="0" goto:BuildFailed
29 echo.
30 echo Build completed successfully.
31 echo.
32 pause
33 goto:eof
35 :BuildFailed
36 echo.
37 echo Build has failed ^^!^^!^^!
38 echo.
39 pause