4 rem EXAMPLE - Build entire openIB-windows release & WIX installers (.msi) files.
\r
5 rem Binary release is constructed in ..\Branches\WinOF\Wix\bin.
\r
6 rem Processor architecture specific WIX installers are constructed in %IDIR%
\r
8 rem This script is an 'example' of a one-command entire IB stack build to single-file installer.
\r
9 rem Script is designed to be invoked from the ...\gen1\trunk folder with ..\branches\WinOF\Wix\*
\r
12 rem Verify the following env vars are suitible for your system configuration.
\r
13 rem _DDK, _PSDK, SVN, IDIR
\r
15 if EXIST C:\WINDDK\3790~1.183 set _DDK=C:\WINDDK\3790~1.183
\r
17 if EXIST C:\WinDDK\6001.18001 set _DDK=C:\WinDDK\6001.18001
\r
20 echo Missing DDK -or- WDK ???
\r
24 echo Building with DDK @ %_DDK%
\r
26 rem Platform SDK path
\r
27 set _PSDK=C:\Program Files (x86)\Microsoft Visual Studio 8\VC\PlatformSDK
\r
29 rem WARNING - SVN set depends on the path '\openIB-windows-svn\xxx\gen1', where SVN is set to XXX
\r
30 rem substring[23rd...26th] chars (offset counting) == xxxx
\r
32 rem If this example method doesn't fit your environment, set SVN accordingly.
\r
33 rem Note - OPENIB_REV is assigned SVN in a child script.
\r
37 rem assumes %CD% == '...\gen1\trunk'
\r
41 set RBIN=%RBIN:trunk=Branches\WinOF\Wix\bin%
\r
43 if NOT EXIST "..\branches\WinOF\WIX\build-MSI.bat" (
\r
44 echo Missing .msi installer build script
\r
45 echo ..\branches\WinOF\WIX\build-MSI.bat
\r
49 rem WIX Installer files (.msi) destination folder - set for local environment.
\r
51 rem set IDIR=D:\temp
\r
52 set IDIR=C:\Windows\Temp
\r
54 echo Building for OPENIB_REV %SVN%, installer files @ %IDIR%
\r
57 if NOT EXIST "%IDIR%" (
\r
58 echo Missing Installer file destination folder %IDIR%
\r
62 rem Verify WIX 2.0 toolset is available - if not, download from
\r
63 rem http://sourceforge.net/project/showfiles.php?group_id=105970&package_id=114109
\r
64 rem select wix-2.0.5325.0-binaries.zip download and unzip to
\r
65 rem ..\branches\WinOF\WIX\WIX_tools\
\r
67 if NOT EXIST ..\branches\WinOF\WIX\WIX_tools\wix-2.0.5325.0-binaries (
\r
68 echo Missing WIX tools @ ..\branches\WinOF\WIX\WIX_tools
\r
72 if NOT EXIST etc\makebin.bat (
\r
73 echo Missing etc\makebin.bat, script must run from gen1\trunk
\r
80 %COMSPEC% /C "call %BSE%\etc\IB_CHK_BLD_x64.bat %SVN% %CD% %_DDK% '%_PSDK%' & build %OPS%"
\r
81 if ERRORLEVEL 1 exit /B 1
\r
82 %COMSPEC% /C "call %BSE%\etc\IB_FRE_BLD_x64.bat %SVN% %CD% %_DDK% '%_PSDK%' & build %OPS%"
\r
83 if ERRORLEVEL 1 exit /B 1
\r
85 %COMSPEC% /C "call %BSE%\etc\IB_CHK_BLD_x86.bat %SVN% %CD% %_DDK% '%_PSDK%' & build %OPS%"
\r
86 if ERRORLEVEL 1 exit /B 1
\r
87 %COMSPEC% /C "call %BSE%\etc\IB_FRE_BLD_x86.bat %SVN% %CD% %_DDK% '%_PSDK%' & build %OPS%"
\r
88 if ERRORLEVEL 1 exit /B 1
\r
90 %COMSPEC% /C "call %BSE%\etc\IB_CHK_BLD_IA64.bat %SVN% %CD% %_DDK% '%_PSDK%' & build %OPS%"
\r
91 if ERRORLEVEL 1 exit /B 1
\r
92 %COMSPEC% /C "call %BSE%\etc\IB_FRE_BLD_IA64.bat %SVN% %CD% %_DDK% '%_PSDK%' & build %OPS%"
\r
93 if ERRORLEVEL 1 exit /B 1
\r
96 echo Create binary release tree - suitible for WinOF-WIX installer build.
\r
103 if EXIST "%BSE%\etc\makebin.bat" (
\r
104 call %BSE%\etc\makebin.bat %BSE% %RBIN%
\r
107 echo %0 - Binary release built in %RBIN%
\r
109 rem build WIX installers --> in ..\branches\WinOF\WIX
\r
111 %COMSPEC% /C "%_DDK%\bin\setenv.bat %_DDK% fre AMD64 WNET & cd /D %RBIN%\.. & build-MSI %IDIR%"
\r