From b5342bc0088affd59b9c6ca0cb57c390eeee915c Mon Sep 17 00:00:00 2001 From: evoskuil Date: Thu, 12 May 2016 03:13:06 -0700 Subject: [PATCH] Problem: no tool for maintainers to build all vs solutions. --- builds/msvc/build/build.bat | 35 ++++++++++++++++++++++++ builds/msvc/build/buildall.bat | 50 +++++++--------------------------- 2 files changed, 45 insertions(+), 40 deletions(-) create mode 100644 builds/msvc/build/build.bat diff --git a/builds/msvc/build/build.bat b/builds/msvc/build/build.bat new file mode 100644 index 00000000..7be27ca2 --- /dev/null +++ b/builds/msvc/build/build.bat @@ -0,0 +1,35 @@ +@ECHO OFF +:: Usage: build.bat [Clean] +@setlocal + +:: validate environment +if "%VSINSTALLDIR%" == "" @echo Error: Attempt to build without proper DevStudio environment.&@goto :done + +:: record starting time +set STARTTIME=%DATE% %TIME% +@echo Start Time: %STARTTIME% + + +:: validate optional argument (and make sure it is spelled "Clean") +set MAKECLEAN=%%1 +if NOT "%%1" == "" if /I "%%1" == "clean" set MAKECLEAN=Clean + + +:: +:: uses the environment from the DevStudio CMD window to figure out which version to build +:: + +set VSVER=%VSINSTALLDIR:~-5,2% +set DIRVER=%VSVER% +if %VSVER% gtr 10 set /a DIRVER = DIRVER + 1 + +CALL buildbase.bat ..\vs20%DIRVER%\libzmq.sln %VSVER% %MAKECLEAN% + +set STOPTIME=%DATE% %TIME% +@echo Stop Time: %STOPTIME% +@echo Start Time: %STARTTIME% + +:done +@endlocal + +PAUSE diff --git a/builds/msvc/build/buildall.bat b/builds/msvc/build/buildall.bat index 9a0e45d7..c8595e8d 100644 --- a/builds/msvc/build/buildall.bat +++ b/builds/msvc/build/buildall.bat @@ -1,44 +1,14 @@ @ECHO OFF -:: Usage: buildall.bat [Clean] -@setlocal +:: Usage: buildall.bat -:: validate environment -if "%VSINSTALLDIR%" == "" @echo Error: Attempt to build without proper DevStudio environment.&@goto :done - -:: record starting time -set STARTTIME=%DATE% %TIME% -@echo Start Time: %STARTTIME% - - -:: validate optional argument (and make sure it is spelled "Clean") -set MAKECLEAN=%%1 -if NOT "%%1" == "" if /I "%%1" == "clean" set MAKECLEAN=Clean - - -:: -:: uses the environment from the DevStudio CMD window to figure out which version to build -:: - -set VSVER=%VSINSTALLDIR:~-5,2% -set DIRVER=%VSVER% -if %VSVER% gtr 10 set /a DIRVER = DIRVER + 1 - -CALL buildbase.bat ..\vs20%DIRVER%\libzmq.sln %VSVER% %MAKECLEAN% - -:- CALL buildbase.bat ..\vs2015\libzmq.sln 14 %MAKECLEAN% -:- ECHO. -:- CALL buildbase.bat ..\vs2013\libzmq.sln 12 %MAKECLEAN% -:- ECHO. -:- CALL buildbase.bat ..\vs2012\libzmq.sln 11 %MAKECLEAN% -:- ECHO. -:- CALL buildbase.bat ..\vs2010\libzmq.sln 10 %MAKECLEAN% -:- ECHO. - -set STOPTIME=%DATE% %TIME% -@echo Stop Time: %STOPTIME% -@echo Start Time: %STARTTIME% - -:done -@endlocal +:: Build all configurations for all solutions. +CALL buildbase.bat ..\vs2015\libzmq.sln 14 +ECHO. +CALL buildbase.bat ..\vs2013\libzmq.sln 12 +ECHO. +CALL buildbase.bat ..\vs2012\libzmq.sln 11 +ECHO. +CALL buildbase.bat ..\vs2010\libzmq.sln 10 +ECHO. PAUSE