From 249a59a5193daedacaeb803776947fe7190dd5a3 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 12 May 2014 02:12:27 -0700 Subject: [PATCH 1/3] Updated libsodium imports. --- builds/msvc/vs2010/libsodium.import.props | 43 +++++------------------ builds/msvc/vs2012/libsodium.import.props | 43 +++++------------------ builds/msvc/vs2013/libsodium.import.props | 36 ++++--------------- 3 files changed, 23 insertions(+), 99 deletions(-) diff --git a/builds/msvc/vs2010/libsodium.import.props b/builds/msvc/vs2010/libsodium.import.props index 9ac8df1e..f101769a 100644 --- a/builds/msvc/vs2010/libsodium.import.props +++ b/builds/msvc/vs2010/libsodium.import.props @@ -16,39 +16,12 @@ $(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories) + SODIUM_STATIC;%(PreprocessorDefinitions) - - - - - SODIUM_STATIC;%(PreprocessorDefinitions) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium10\libsodium.imp.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium10\libsodium.imp.lib;%(AdditionalDependencies) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium10\libsodium.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium10\libsodium.lib;%(AdditionalDependencies) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium10\libsodium.ltcg.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium10\libsodium.ltcg.lib;%(AdditionalDependencies) + + advapi32.lib;crypt32.lib;libsodium.lib;%(AdditionalDependencies) + $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories) + $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories) @@ -56,15 +29,15 @@ diff --git a/builds/msvc/vs2012/libsodium.import.props b/builds/msvc/vs2012/libsodium.import.props index 5ef05ecf..f101769a 100644 --- a/builds/msvc/vs2012/libsodium.import.props +++ b/builds/msvc/vs2012/libsodium.import.props @@ -16,39 +16,12 @@ $(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories) + SODIUM_STATIC;%(PreprocessorDefinitions) - - - - - SODIUM_STATIC;%(PreprocessorDefinitions) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.imp.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.imp.lib;%(AdditionalDependencies) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.lib;%(AdditionalDependencies) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium11\libsodium.ltcg.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium11\libsodium.ltcg.lib;%(AdditionalDependencies) + + advapi32.lib;crypt32.lib;libsodium.lib;%(AdditionalDependencies) + $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories) + $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories) @@ -56,15 +29,15 @@ diff --git a/builds/msvc/vs2013/libsodium.import.props b/builds/msvc/vs2013/libsodium.import.props index dc854609..f101769a 100644 --- a/builds/msvc/vs2013/libsodium.import.props +++ b/builds/msvc/vs2013/libsodium.import.props @@ -18,32 +18,10 @@ $(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include;$(ProjectDir)..\..\..\..\..\libsodium\src\libsodium\include\sodium\;%(AdditionalIncludeDirectories) SODIUM_STATIC;%(PreprocessorDefinitions) - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.imp.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\libsodium.imp.lib;%(AdditionalDependencies) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\libsodium.lib;%(AdditionalDependencies) - - - - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\libsodium12\libsodium.ltcg.lib;%(AdditionalDependencies) - - - $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\libsodium12\libsodium.ltcg.lib;%(AdditionalDependencies) + + advapi32.lib;crypt32.lib;libsodium.lib;%(AdditionalDependencies) + $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Debug\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories) + $(ProjectDir)..\..\..\..\..\libsodium\bin\$(PlatformName)\Release\$(PlatformToolset)\$(Linkage-libsodium)\;%(AdditionalLibraryDirectories) @@ -51,15 +29,15 @@ From 5ab44f4874ff828e6d54b9b56f22d8d8e4504491 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 12 May 2014 02:13:47 -0700 Subject: [PATCH 2/3] Ignore error on concurrent file copy in parallel VS builds. --- builds/msvc/vs2010/inproc_lat/inproc_lat.props | 2 +- builds/msvc/vs2010/inproc_thr/inproc_thr.props | 2 +- builds/msvc/vs2010/libzmq/libzmq.props | 2 +- builds/msvc/vs2010/local_lat/local_lat.props | 2 +- builds/msvc/vs2010/local_thr/local_thr.props | 2 +- builds/msvc/vs2010/remote_lat/remote_lat.props | 2 +- builds/msvc/vs2010/remote_thr/remote_thr.props | 2 +- builds/msvc/vs2012/inproc_lat/inproc_lat.props | 2 +- builds/msvc/vs2012/inproc_thr/inproc_thr.props | 2 +- builds/msvc/vs2012/libzmq/libzmq.props | 2 +- builds/msvc/vs2012/local_lat/local_lat.props | 2 +- builds/msvc/vs2012/local_thr/local_thr.props | 2 +- builds/msvc/vs2012/remote_lat/remote_lat.props | 2 +- builds/msvc/vs2012/remote_thr/remote_thr.props | 2 +- builds/msvc/vs2013/inproc_lat/inproc_lat.props | 2 +- builds/msvc/vs2013/inproc_thr/inproc_thr.props | 2 +- builds/msvc/vs2013/libzmq/libzmq.props | 2 +- builds/msvc/vs2013/local_lat/local_lat.props | 2 +- builds/msvc/vs2013/local_thr/local_thr.props | 2 +- builds/msvc/vs2013/remote_lat/remote_lat.props | 2 +- builds/msvc/vs2013/remote_thr/remote_thr.props | 2 +- 21 files changed, 21 insertions(+), 21 deletions(-) diff --git a/builds/msvc/vs2010/inproc_lat/inproc_lat.props b/builds/msvc/vs2010/inproc_lat/inproc_lat.props index 6732c319..f4a9371e 100644 --- a/builds/msvc/vs2010/inproc_lat/inproc_lat.props +++ b/builds/msvc/vs2010/inproc_lat/inproc_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2010/inproc_thr/inproc_thr.props b/builds/msvc/vs2010/inproc_thr/inproc_thr.props index 70518a7b..494ae061 100644 --- a/builds/msvc/vs2010/inproc_thr/inproc_thr.props +++ b/builds/msvc/vs2010/inproc_thr/inproc_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2010/libzmq/libzmq.props b/builds/msvc/vs2010/libzmq/libzmq.props index d053dceb..a6986280 100644 --- a/builds/msvc/vs2010/libzmq/libzmq.props +++ b/builds/msvc/vs2010/libzmq/libzmq.props @@ -21,7 +21,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\src\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\src\ $(ProjectDir)..\..\..\..\include\;%(AdditionalIncludeDirectories) diff --git a/builds/msvc/vs2010/local_lat/local_lat.props b/builds/msvc/vs2010/local_lat/local_lat.props index bf058718..3f4f641c 100644 --- a/builds/msvc/vs2010/local_lat/local_lat.props +++ b/builds/msvc/vs2010/local_lat/local_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2010/local_thr/local_thr.props b/builds/msvc/vs2010/local_thr/local_thr.props index 5d05fd6b..05779efe 100644 --- a/builds/msvc/vs2010/local_thr/local_thr.props +++ b/builds/msvc/vs2010/local_thr/local_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2010/remote_lat/remote_lat.props b/builds/msvc/vs2010/remote_lat/remote_lat.props index bed64a4a..c36dba6c 100644 --- a/builds/msvc/vs2010/remote_lat/remote_lat.props +++ b/builds/msvc/vs2010/remote_lat/remote_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2010/remote_thr/remote_thr.props b/builds/msvc/vs2010/remote_thr/remote_thr.props index 5a52f4cd..2bc1832e 100644 --- a/builds/msvc/vs2010/remote_thr/remote_thr.props +++ b/builds/msvc/vs2010/remote_thr/remote_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2012/inproc_lat/inproc_lat.props b/builds/msvc/vs2012/inproc_lat/inproc_lat.props index 6732c319..f4a9371e 100644 --- a/builds/msvc/vs2012/inproc_lat/inproc_lat.props +++ b/builds/msvc/vs2012/inproc_lat/inproc_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2012/inproc_thr/inproc_thr.props b/builds/msvc/vs2012/inproc_thr/inproc_thr.props index 70518a7b..494ae061 100644 --- a/builds/msvc/vs2012/inproc_thr/inproc_thr.props +++ b/builds/msvc/vs2012/inproc_thr/inproc_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2012/libzmq/libzmq.props b/builds/msvc/vs2012/libzmq/libzmq.props index d053dceb..a6986280 100644 --- a/builds/msvc/vs2012/libzmq/libzmq.props +++ b/builds/msvc/vs2012/libzmq/libzmq.props @@ -21,7 +21,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\src\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\src\ $(ProjectDir)..\..\..\..\include\;%(AdditionalIncludeDirectories) diff --git a/builds/msvc/vs2012/local_lat/local_lat.props b/builds/msvc/vs2012/local_lat/local_lat.props index bf058718..3f4f641c 100644 --- a/builds/msvc/vs2012/local_lat/local_lat.props +++ b/builds/msvc/vs2012/local_lat/local_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2012/local_thr/local_thr.props b/builds/msvc/vs2012/local_thr/local_thr.props index 5d05fd6b..05779efe 100644 --- a/builds/msvc/vs2012/local_thr/local_thr.props +++ b/builds/msvc/vs2012/local_thr/local_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2012/remote_lat/remote_lat.props b/builds/msvc/vs2012/remote_lat/remote_lat.props index bed64a4a..c36dba6c 100644 --- a/builds/msvc/vs2012/remote_lat/remote_lat.props +++ b/builds/msvc/vs2012/remote_lat/remote_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2012/remote_thr/remote_thr.props b/builds/msvc/vs2012/remote_thr/remote_thr.props index 5a52f4cd..2bc1832e 100644 --- a/builds/msvc/vs2012/remote_thr/remote_thr.props +++ b/builds/msvc/vs2012/remote_thr/remote_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2013/inproc_lat/inproc_lat.props b/builds/msvc/vs2013/inproc_lat/inproc_lat.props index 6732c319..f4a9371e 100644 --- a/builds/msvc/vs2013/inproc_lat/inproc_lat.props +++ b/builds/msvc/vs2013/inproc_lat/inproc_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2013/inproc_thr/inproc_thr.props b/builds/msvc/vs2013/inproc_thr/inproc_thr.props index 70518a7b..494ae061 100644 --- a/builds/msvc/vs2013/inproc_thr/inproc_thr.props +++ b/builds/msvc/vs2013/inproc_thr/inproc_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2013/libzmq/libzmq.props b/builds/msvc/vs2013/libzmq/libzmq.props index d053dceb..a6986280 100644 --- a/builds/msvc/vs2013/libzmq/libzmq.props +++ b/builds/msvc/vs2013/libzmq/libzmq.props @@ -21,7 +21,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\src\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\src\ $(ProjectDir)..\..\..\..\include\;%(AdditionalIncludeDirectories) diff --git a/builds/msvc/vs2013/local_lat/local_lat.props b/builds/msvc/vs2013/local_lat/local_lat.props index bf058718..3f4f641c 100644 --- a/builds/msvc/vs2013/local_lat/local_lat.props +++ b/builds/msvc/vs2013/local_lat/local_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2013/local_thr/local_thr.props b/builds/msvc/vs2013/local_thr/local_thr.props index 5d05fd6b..05779efe 100644 --- a/builds/msvc/vs2013/local_thr/local_thr.props +++ b/builds/msvc/vs2013/local_thr/local_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2013/remote_lat/remote_lat.props b/builds/msvc/vs2013/remote_lat/remote_lat.props index bed64a4a..c36dba6c 100644 --- a/builds/msvc/vs2013/remote_lat/remote_lat.props +++ b/builds/msvc/vs2013/remote_lat/remote_lat.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) diff --git a/builds/msvc/vs2013/remote_thr/remote_thr.props b/builds/msvc/vs2013/remote_thr/remote_thr.props index 5a52f4cd..2bc1832e 100644 --- a/builds/msvc/vs2013/remote_thr/remote_thr.props +++ b/builds/msvc/vs2013/remote_thr/remote_thr.props @@ -11,7 +11,7 @@ - copy $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ + xcopy /c /y $(ProjectDir)..\..\platform.hpp $(ProjectDir)..\..\..\..\perf\ Advapi32.lib;Rpcrt4.lib;Ws2_32.lib;%(AdditionalDependencies) From bf169024b350fa9092003bc80dd8250ee5515ebe Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 12 May 2014 02:17:08 -0700 Subject: [PATCH 3/3] Batched VS builds. --- builds/msvc/build/buildall.bat | 10 +++++ builds/msvc/build/buildbase.bat | 65 +++++++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+) create mode 100644 builds/msvc/build/buildall.bat create mode 100644 builds/msvc/build/buildbase.bat diff --git a/builds/msvc/build/buildall.bat b/builds/msvc/build/buildall.bat new file mode 100644 index 00000000..3307af6d --- /dev/null +++ b/builds/msvc/build/buildall.bat @@ -0,0 +1,10 @@ +@ECHO OFF + +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 \ No newline at end of file diff --git a/builds/msvc/build/buildbase.bat b/builds/msvc/build/buildbase.bat new file mode 100644 index 00000000..6563ccbd --- /dev/null +++ b/builds/msvc/build/buildbase.bat @@ -0,0 +1,65 @@ +@ECHO OFF +REM Usage: [buildbase.bat ..\vs2013\libzmq.sln 12] + +SET solution=%1 +SET version=%2 + +SET log=build_%version%.log + +REM This breaks if visual studio is not installed or is installed to a non-default location. +SET environment="C:\Program Files (x86)\Microsoft Visual Studio %version%.0\VC\vcvarsall.bat" + +ECHO Building: %solution% + +CALL %environment% x86 > nul +ECHO Platform=x86 + +ECHO Configuration=DynDebug +msbuild /m /v:n /p:Configuration=DynDebug /p:Platform=Win32 %solution% > %log% +IF errorlevel 1 GOTO error +ECHO Configuration=DynRelease +msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=Win32 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=LtcgDebug +msbuild /m /v:n /p:Configuration=LtcgDebug /p:Platform=Win32 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=LtcgRelease +msbuild /m /v:n /p:Configuration=LtcgRelease /p:Platform=Win32 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=StaticDebug +msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=Win32 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=StaticRelease +msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=Win32 %solution% >> %log% +IF errorlevel 1 GOTO error + +CALL %environment% x86_amd64 > nul +ECHO Platform=x64 + +ECHO Configuration=DynDebug +msbuild /m /v:n /p:Configuration=DynDebug /p:Platform=x64 %solution% > %log% +IF errorlevel 1 GOTO error +ECHO Configuration=DynRelease +msbuild /m /v:n /p:Configuration=DynRelease /p:Platform=x64 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=LtcgDebug +msbuild /m /v:n /p:Configuration=LtcgDebug /p:Platform=x64 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=LtcgRelease +msbuild /m /v:n /p:Configuration=LtcgRelease /p:Platform=x64 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=StaticDebug +msbuild /m /v:n /p:Configuration=StaticDebug /p:Platform=x64 %solution% >> %log% +IF errorlevel 1 GOTO error +ECHO Configuration=StaticRelease +msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=x64 %solution% >> %log% +IF errorlevel 1 GOTO error + +ECHO Complete: %solution% +GOTO end + +:error +ECHO *** ERROR, build terminated, see: %log% + +:end +