forked from mathusummut/Ablaze.Net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-all.bat
52 lines (49 loc) · 1.14 KB
/
build-all.bat
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
@echo off
setlocal EnableDelayedExpansion
SET MSBUILD_CONFIG=Release
SET PLATFORM="Any CPU"
SET VCVARS_PLATFORM=x86_amd64
Echo Choose Visual Studio version to compile with (must be installed):
Echo.
Echo 1. Visual Studio 2015
Echo 2. Visual Studio 2017
Echo 3. Visual Studio 2019
Echo.
SET QUERY=""
SET /P QUERY=Choose compiler (1/2/3):
IF /I "%QUERY%"=="1" (
call .\set-env-2015.bat
GOTO BUILD
)
IF /I "%QUERY%"=="2" (
call .\set-env-2017.bat
GOTO BUILD
)
IF /I "%QUERY%"=="3" (
call .\set-env-2019.bat
GOTO BUILD
)
IF /I "%QUERY%" NEQ "1" (
IF /I "%QUERY%" NEQ "2" (
IF /I "%QUERY%" NEQ "3" (
Echo Invalid choice.
Echo.
GOTO CHOOSE
)
)
)
GOTO BUILD
:BUILD
ECHO --------------------------------
Echo Building Ablaze...
Echo.
msbuild.exe /m /p:Configuration=%MSBUILD_CONFIG% /p:Platform=%PLATFORM% Ablaze.sln
cd Tools
msbuild.exe /m /p:Configuration=%MSBUILD_CONFIG% /p:Platform=%PLATFORM% Ablaze.Tools.sln
cd ..
cd Demos\Particles\AForge.Net
msbuild.exe /m /p:Configuration=%MSBUILD_CONFIG% /p:Platform=%PLATFORM% AForge.Net.sln
cd ..\..
msbuild.exe /m /p:Configuration=%MSBUILD_CONFIG% /p:Platform=%PLATFORM% Ablaze.Demos.sln
cd ..\..\..
pause