forked from accord-net/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-all.cmd
More file actions
66 lines (55 loc) · 2.1 KB
/
build-all.cmd
File metadata and controls
66 lines (55 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
@echo off
:: (enable termination from subroutine)
SETLOCAL
set ERROR_CODE=0
if "%selfWrapped%"=="" (
set selfWrapped=true
%ComSpec% /s /c ""%~0" %*"
goto :eof
)
echo.
echo Accord.NET Framework - all project configurations builder
echo =========================================================
echo.
:: Use Microsoft's vswhere.exe to locate the appropriate version of MSBuild:
for /f "usebackq tokens=1* delims=: " %%i in (`Tools\vswhere -latest -requires Microsoft.Component.MSBuild`) do (
if /i "%%i"=="installationPath" set InstallDir=%%j
)
set MSBUILD="%InstallDir%\MSBuild\15.0\Bin\MSBuild.exe"
echo This Windows batch file will use MSBuild.exe from the path
echo %MSBUILD%
echo to compile the Debug and Release versions of the framework.
echo.
::pause
del /q "Setup\bin\*.log"
echo.
call:BUILD "Sources\Accord.NET.sln","Debug","x64"
call:BUILD "Sources\Accord.NET.sln","Debug","Any CPU"
call:BUILD "Sources\Accord.NET.sln","Mono","Any CPU"
call:BUILD "Sources\Accord.NET.sln","NET35","x64"
call:BUILD "Sources\Accord.NET.sln","NET35","Any CPU"
call:BUILD "Sources\Accord.NET.sln","NET40","x64"
call:BUILD "Sources\Accord.NET.sln","NET40","Any CPU"
call:BUILD "Sources\Accord.NET.sln","NET45","x64"
call:BUILD "Sources\Accord.NET.sln","NET45","Any CPU"
call:BUILD "Sources\Accord.NET.sln","NET46","x64"
call:BUILD "Sources\Accord.NET.sln","NET46","Any CPU"
call:BUILD "Sources\Accord.NET.sln","NET462","x64"
call:BUILD "Sources\Accord.NET.sln","NET462","Any CPU"
call:BUILD "Sources\Accord.NET (NETStandard).sln","netstandard2.0","Any CPU"
call:BUILD "Samples\Samples.sln","Release","x86"
exit /b %ERROR_CODE%
goto:eof
:BUILD
set SOLUTION=%~1
set CONFIGURATION=%~2
set PLATFORM=%~3
echo.
echo - Building %SOLUTION% in %CONFIGURATION% / %PLATFORM% configuration...
%MSBUILD% /m "%SOLUTION%" /t:Rebuild /p:Configuration=%CONFIGURATION% /p:Platform="%PLATFORM%" /fl /flp:logfile="Setup\bin\Build.%CONFIGURATION%.%PLATFORM%.log";verbosity=normal /consoleloggerparameters:ErrorsOnly;Summary /verbosity:minimal /nologo
set ERROR_CODE=%errorlevel%
if %ERROR_CODE% neq 0 (
echo Exiting with %ERROR_CODE%
exit /b %ERROR_CODE%
)
goto:eof