Skip to content

Commit 101e091

Browse files
committed
Revise and generate msvc build-all commands.
1 parent 4311db1 commit 101e091

File tree

4 files changed

+35
-19
lines changed

4 files changed

+35
-19
lines changed

builds/msvc/build/build_all.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
@ECHO OFF
2+
CALL nuget_all.bat
3+
ECHO.
4+
CALL build_base.bat vs2017 libbitcoin-protocol "Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"
5+
CALL build_base.bat vs2015 libbitcoin-protocol "Microsoft Visual Studio 14.0\VC"
6+
CALL build_base.bat vs2013 libbitcoin-protocol "Microsoft Visual Studio 12.0\VC"
7+
PAUSE

builds/msvc/build/buildbase.bat renamed to builds/msvc/build/build_base.bat

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
@ECHO OFF
2-
REM Usage: [buildbase.bat ..\vs2013\mysolution.sln 12]
2+
REM Usage: [buildbase.bat vs2017 libbitcoin "Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build"]
3+
REM Usage: [buildbase.bat vs2015 libbitcoin "Microsoft Visual Studio 14.0\VC"]
4+
REM Usage: [buildbase.bat vs2013 libbitcoin "Microsoft Visual Studio 12.0\VC"]
35

4-
SET solution=%1
5-
SET version=%2
6-
SET log=build_%version%.log
7-
SET tools=Microsoft Visual Studio %version%.0\VC\vcvarsall.bat
8-
SET environment="%programfiles(x86)%\%tools%"
9-
IF NOT EXIST %environment% SET environment="%programfiles%\%tools%"
10-
IF NOT EXIST %environment% GOTO no_tools
6+
SET studio=%1
7+
SET project=%2
8+
SET version=%~3
9+
10+
SET log=%studio%.log
11+
SET solution=..\%studio%\%project%.sln
12+
SET tools=%version%\vcvarsall.bat
13+
SET environment=%programfiles(x86)%\%tools%
14+
15+
IF NOT EXIST "%environment%" SET environment=%programfiles%\%tools%
16+
IF NOT EXIST "%environment%" GOTO no_tools
1117

1218
ECHO Building: %solution%
1319

14-
CALL %environment% x86 > nul
20+
CALL "%environment%" x86 > nul
1521
ECHO Platform=x86
1622

1723
ECHO Configuration=StaticDebug
@@ -21,7 +27,7 @@ ECHO Configuration=StaticRelease
2127
msbuild /m /v:n /p:Configuration=StaticRelease /p:Platform=Win32 %solution% >> %log%
2228
IF errorlevel 1 GOTO error
2329

24-
CALL %environment% x86_amd64 > nul
30+
CALL "%environment%" x86_amd64 > nul
2531
ECHO Platform=x64
2632

2733
ECHO Configuration=StaticDebug

builds/msvc/build/buildall.bat

Lines changed: 0 additions & 9 deletions
This file was deleted.

builds/msvc/build/nuget_all.bat

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
@ECHO OFF
2+
ECHO Downloading libbitcoin vs2017 dependencies from NuGet
3+
CALL nuget.exe install ..\vs2017\libbitcoin-protocol\packages.config
4+
CALL nuget.exe install ..\vs2017\libbitcoin-protocol-test\packages.config
5+
ECHO.
6+
ECHO Downloading libbitcoin vs2015 dependencies from NuGet
7+
CALL nuget.exe install ..\vs2015\libbitcoin-protocol\packages.config
8+
CALL nuget.exe install ..\vs2015\libbitcoin-protocol-test\packages.config
9+
ECHO.
10+
ECHO Downloading libbitcoin vs2013 dependencies from NuGet
11+
CALL nuget.exe install ..\vs2013\libbitcoin-protocol\packages.config
12+
CALL nuget.exe install ..\vs2013\libbitcoin-protocol-test\packages.config

0 commit comments

Comments
 (0)