forked from Axadiw/MFIGamepadFeeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildAll.bat
52 lines (43 loc) · 1.67 KB
/
BuildAll.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
SET VS=Microsoft Visual Studio\2022\Community
SET SLN_CFG=Release
SET BUILDER=%ProgramFiles%\%VS%\MSBuild\Current\Bin\MSBuild.exe
SET InnoCompiler=%ProgramFiles(x86)%\Inno Setup 6\ISCC.exe
:build32
echo %DATE% %TIME%: Cleaning MFIGamepadFeeder (x86)
"%BUILDER%" MFIGamepadFeeder.sln /maxcpucount:1 /t:clean /p:Platform=x86;Configuration="%SLN_CFG%"
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
echo %DATE% %TIME%: Building MFIGamepadFeeder (x86)
"%BUILDER%" MFIGamepadFeeder.sln /maxcpucount:4 /p:Platform=x86;Configuration="%SLN_CFG%"
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
:build64
echo %DATE% %TIME%: Cleaning MFIGamepadFeeder (x64)
"%BUILDER%" MFIGamepadFeeder.sln /maxcpucount:1 /t:clean /p:Platform=x64;Configuration="%SLN_CFG%"
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
echo %DATE% %TIME%: Building MFIGamepadFeeder (x64)
"%BUILDER%" MFIGamepadFeeder.sln /maxcpucount:4 /p:Platform=x64;Configuration="%SLN_CFG%"
set BUILD_STATUS=%ERRORLEVEL%
if not %BUILD_STATUS%==0 goto fail
:inno32
echo %DATE% %TIME%: Compiling the Inno Setup Script (x86)
IF NOT EXIST "%InnoCompiler%" GOTO NOINNO
"%InnoCompiler%" setup_x86.iss
set INNO_STATUS=%ERRORLEVEL%
if not %INNO_STATUS%==0 goto fail
echo %DATE% %TIME%: Compiling the Inno Setup Script (x86) - OK
:inno64
echo %DATE% %TIME%: Compiling the Inno Setup Script (x64)
IF NOT EXIST "%InnoCompiler%" GOTO NOINNO
"%InnoCompiler%" setup_x64.iss
set INNO_STATUS=%ERRORLEVEL%
if not %INNO_STATUS%==0 goto fail
echo %DATE% %TIME%: Compiling the Inno Setup Script (x64) - OK
exit /b 0
:NOINNO
echo %DATE% %TIME%: Could not find Inno Setup Compiler
goto fail
:fail
exit /b 1