2014-05-12 02:17:08 -07:00
|
|
|
@ECHO OFF
|
2016-03-05 04:37:01 -06:00
|
|
|
:: Usage: buildall.bat [Clean]
|
2016-02-17 09:42:53 -06:00
|
|
|
@setlocal
|
2016-03-05 04:37:01 -06:00
|
|
|
|
|
|
|
:: 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
|
|
|
|
|
|
|
|
|
2016-02-17 09:42:53 -06:00
|
|
|
::
|
|
|
|
:: uses the environment from the DevStudio CMD window to figure out which version to build
|
|
|
|
::
|
2014-05-12 02:17:08 -07:00
|
|
|
|
2016-02-17 09:42:53 -06:00
|
|
|
set VSVER=%VSINSTALLDIR:~-5,2%
|
|
|
|
set DIRVER=%VSVER%
|
|
|
|
if %VSVER% gtr 10 set /a DIRVER = DIRVER + 1
|
|
|
|
|
2016-03-05 04:37:01 -06:00
|
|
|
CALL buildbase.bat ..\vs20%DIRVER%\libzmq.sln %VSVER% %MAKECLEAN%
|
2016-02-17 09:42:53 -06:00
|
|
|
|
2016-03-05 04:37:01 -06:00
|
|
|
:- CALL buildbase.bat ..\vs2015\libzmq.sln 14 %MAKECLEAN%
|
2016-02-17 09:42:53 -06:00
|
|
|
:- ECHO.
|
2016-03-05 04:37:01 -06:00
|
|
|
:- CALL buildbase.bat ..\vs2013\libzmq.sln 12 %MAKECLEAN%
|
2016-02-03 21:12:29 +01:00
|
|
|
:- ECHO.
|
2016-03-05 04:37:01 -06:00
|
|
|
:- CALL buildbase.bat ..\vs2012\libzmq.sln 11 %MAKECLEAN%
|
2016-02-03 21:12:29 +01:00
|
|
|
:- ECHO.
|
2016-03-05 04:37:01 -06:00
|
|
|
:- CALL buildbase.bat ..\vs2010\libzmq.sln 10 %MAKECLEAN%
|
2016-02-03 21:12:29 +01:00
|
|
|
:- ECHO.
|
2014-05-12 02:17:08 -07:00
|
|
|
|
2016-03-05 04:37:01 -06:00
|
|
|
set STOPTIME=%DATE% %TIME%
|
|
|
|
@echo Stop Time: %STOPTIME%
|
|
|
|
@echo Start Time: %STARTTIME%
|
|
|
|
|
|
|
|
:done
|
2016-02-17 09:42:53 -06:00
|
|
|
@endlocal
|
2016-03-05 04:37:01 -06:00
|
|
|
|
2016-02-03 21:12:29 +01:00
|
|
|
PAUSE
|