-
Notifications
You must be signed in to change notification settings - Fork 143
/
buildAll.bat
67 lines (52 loc) · 1.27 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
@echo off
SETLOCAL EnableExtensions EnableDelayedExpansion
set _f=UsbDk
if [%1] EQU [MSIONLY] goto BUILD_MSI
if [%2] EQU [NOSIGN] (SET DEBUG_CFG=Debug_NoSign) ELSE (SET DEBUG_CFG=Debug)
del *.log
for %%x in (Win7, Win8, Win8.1, Win10, XP) do (
for %%y in (%DEBUG_CFG%, Release) do (
for %%z in (win32, x64) do (
call tools\vs_run.bat UsbDk.sln /Rebuild "%%x %%y|%%z" /Out build%%y_%%x_%%z.log
if !ERRORLEVEL! NEQ 0 exit /B 1
)
)
)
pushd Install
call :maketmf Release
if !ERRORLEVEL! NEQ 0 exit /B 1
popd
pushd Install_Debug
call :maketmf %DEBUG_CFG%
if !ERRORLEVEL! NEQ 0 exit /B 1
popd
if [%1] EQU [NOMSI] goto NOMSI
goto BUILD_MSI
:maketmf
del *.tmf *.mof
call :make1tmf x64\Win10%1
call :make1tmf x86\Win10%1
call :make1tmf x64\Win8.1%1
call :make1tmf x86\Win8.1%1
call :make1tmf x64\Win8%1
call :make1tmf x86\Win8%1
call :make1tmf x64\Win7%1
call :make1tmf x86\Win7%1
call :make1tmf x64\XP%1
call :make1tmf x86\XP%1
goto :eof
:make1tmf
pushd %1
echo Making TMF in %1
"C:\Program Files (x86)\Windows Kits\10\bin\x86\tracepdb.exe" -s -o .\%_f%.tmf
popd
type %1\%_f%.tmf >> %_f%.tmf
del %1\%_f%.??f
goto :eof
:BUILD_MSI
pushd Tools\Installer
SET UsbDkVersion="%USBDK_MAJOR_VERSION%.%USBDK_MINOR_VERSION%.%USBDK_BUILD_NUMBER%"
buildmsi.bat %2
popd
:NOMSI
ENDLOCAL