-
Notifications
You must be signed in to change notification settings - Fork 163
/
build-all.bat
77 lines (67 loc) · 1.97 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@echo off
set platform=%1
set configuration=%2
if "%platform%" == "Win32" (
@rem OK
) else if "%platform%" == "x64" (
@rem OK
) else if "%platform%" == "MinGW" (
@rem OK
) else (
call :showhelp %0
exit /b 1
)
if "%configuration%" == "Release" (
@rem OK
) else if "%configuration%" == "Debug" (
@rem OK
) else (
call :showhelp %0
exit /b 1
)
@echo PLATFORM %PLATFORM%
@echo CONFIGURATION %CONFIGURATION%
@echo.
if "%platform%" == "MinGW" (
@echo call build-gnu.bat %PLATFORM% %CONFIGURATION%
call build-gnu.bat %PLATFORM% %CONFIGURATION% || (echo error build-gnu.bat && exit /b 1)
exit /b 0
)
@echo ---- start build-sln.bat ----
call build-sln.bat %PLATFORM% %CONFIGURATION% || (echo error build-sln.bat && exit /b 1)
@echo ---- end build-sln.bat ----
@echo.
@echo ---- start build-chm.bat ----
call build-chm.bat || (echo error build-chm.bat && exit /b 1)
@echo ---- end build-chm.bat ----
@echo.
@echo ---- start build-installer.bat ----
call build-installer.bat %PLATFORM% %CONFIGURATION% || (echo error build-installer.bat && exit /b 1)
@echo ---- end build-installer.bat ----
@echo.
@echo ---- start zipArtifacts.bat ----
call zipArtifacts.bat %PLATFORM% %CONFIGURATION% || (echo error zipArtifacts.bat && exit /b 1)
@echo ---- end zipArtifacts.bat ----
@echo.
exit /b 0
@rem ------------------------------------------------------------------------------
@rem show help
@rem see http://orangeclover.hatenablog.com/entry/20101004/1286120668
@rem ------------------------------------------------------------------------------
:showhelp
@echo off
@echo usage
@echo %~nx1 platform configuration
@echo.
@echo parameter
@echo platform : Win32 or x64 or MinGW
@echo configuration : Release or Debug
@echo.
@echo example
@echo %~nx1 Win32 Release
@echo %~nx1 Win32 Debug
@echo %~nx1 x64 Release
@echo %~nx1 x64 Debug
@echo %~nx1 MinGW Release
@echo %~nx1 MinGW Debug
exit /b 0