[ActiveLock-Development] CVS: activelock _build.bat,1.3,1.4
Brought to you by:
ialkan
From: Thanh H. T. <th...@us...> - 2003-10-13 08:24:20
|
Update of /cvsroot/activelock/activelock In directory sc8-pr-cvs1:/tmp/cvs-serv26344 Modified Files: _build.bat Log Message: See revision history inside the file. I'm getting tired of commenting twice. Index: _build.bat =================================================================== RCS file: /cvsroot/activelock/activelock/_build.bat,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- _build.bat 6 Oct 2003 05:17:26 -0000 1.3 +++ _build.bat 13 Oct 2003 08:24:14 -0000 1.4 @@ -15,15 +15,26 @@ rem rem =================================================================================== rem REVISION HISTORY +rem ================ +rem Date ID Description rem -------- ------------- --------------------------------------------------------- rem 08.14.03 - th2tran - Created rem 10.05.03 - th2tran - Added compile steps for ALUGEN and building the setup rem - Added compile steps for Examples rem - Sent vb compile output to build.log - +rem 10.13.03 - th2tran - Added more comments and instructions. +rem - Corrected if-test syntax...both operands needs to be inside quotes. +rem - Use errorlevel to detect compile failure +rem rem =================================================================================== rem Usage: To run a build of ActiveLock, run the following command: rem > _build <target> +rem List of available targets: +rem - all (default) +rem - skip-activelock (same as all except activelock2.dll will not be recompiled) +rem - compile-activelock +rem - docs +rem - installer rem Examples: rem * To run the installer, use: rem _build installer @@ -34,63 +45,101 @@ rem Delete previous VB compilation log file del build.log -if %1 == installer goto installer -if %1 == docs goto docs +if "%1" == "installer" goto installer +if "%1" == "docs" goto docs +if "%1" == "compile-activelock" goto compile-activelock rem ========================================================================================= rem Compile ActiveLock Libraries rem ========================================================================================= +:all rem alutil.dll rem Make sure we unregister it before rebuilding, so that we don't leave junk old version stuff in the Registry echo Unregistering alutil.dll... -regsvr32 /s /u ..\bin\alutil.dll +regsvr32 /s /u bin\alutil.dll echo Compiling alutil.dll... rem Need to make sure vb6.exe is in our system PATH -vb6.exe /make ..\alutil\ActiveLockUtil.vbp +vb6.exe /make ..\alutil\ActiveLockUtil.vbp /out build.log +if errorlevel == 1 goto error echo Copying autil.dll to bin\ directory copy ..\alutil\alutil.dll bin\ +:compile-activelock +if "%1" == "skip-activelock" goto compile-alugen rem Skip ActiveLock2.dll compilation. rem Because of the checksum, you'll need to compile this manually and update the Test App CRC checksum accordingly rem before you run this build. echo ActiveLock2.dll compilation skipped. -rem echo Unregistering activelock2.dll... -rem regsvr32 /s /u src\activelock2.dll -rem echo Compiling activelock2.dll... -rem vb6.exe /make src\ActiveLock2.vbp /out build.log -rem Pause the build now to allow user to update sample app with new ActiveLock2.dll checksum -rem TODO: implement +echo Unregistering activelock2.dll... +regsvr32 /s /u bin\activelock2.dll +echo Compiling activelock2.dll... +vb6.exe /make src\ActiveLock2.vbp /out build.log +if errorlevel == 1 goto error +copy src\activelock2.dll bin\ +regsvr32 /s /u src\activelock2.dll +echo The build will now pause for you to update ALTestApp with the new activelock2.dll checksum. +rem pause +if "%1" == "compile-activelock" goto done +:compile-alugen +regsvr32 /s bin\activelock2.dll echo Unregistering alugen.dll... regsvr32 /s /u ..\alugen\lib\alugen.dll echo Compiling alugen.dll... vb6.exe /make ..\alugen\lib\ALUGENLib.vbp /out build.log +if errorlevel == 1 goto error rem move ..\alugen\lib\alugen.dll bin\ echo Compiling alugen.exe... vb6.exe /make ..\alugen\app\ALUGEN.vbp /out build.log +if errorlevel == 1 goto error rem move ..\alugen\app\alugen.exe bin\ echo Compiling Examples vb6.exe /make examples\example1\ALTestApp.vbp /out build.log +if errorlevel == 1 goto error -if %1 == compile goto done +if "%1" == "compile-all" goto done rem ========================================================================================= rem Build API Documentation +rem Before running the docs build, you should set your VBDox options as follows: +rem - Report Manager: .NET Style +rem - Doc Parser: Java Style +rem - Disable the spell checker, because it doesn't like VB keywords too much +rem - .NEt Style Report Manager Options +rem - Show property access [checked] +rem - Show module description in project module list [checked] +rem - Show module and entry icons [checked] +rem - Include: +rem - All modules and classes [checked] +rem - Include All entries [unchecked] +rem - Form controls [unchecked] +rem - HTML Help: +rem - Help project [checked] +rem - Lists: +rem - TO DO [checked] +rem - BUG [checked] +rem - History [checked] rem ========================================================================================= :docs -echo Deleting old vbdox files... -del /f /q /s vbdox\*.* +rem Note: There's a problem with VBDox 2.0.30. If you're building vbdox for the first time, +rem there will be some missing icons after the vbdox build. So you'll need to copy +rem the icons from <vbdox_root>\icons over to generated doc's directory. +rem This is why I'm commenting out the lines that cleans up old vbdox\*.*, so that you don't +rem have to do the copying every time you build. +rem +rem echo Deleting old vbdox files... +rem del /f /q /s vbdox\*.* echo Compiling vbdox help files... vbdox -q -o ..\..\vbdox -rm VBDOXEXT.clsReportManagerNET -dp VBDOXEXT.clsDocParserJ src\vbdox\ActiveLock2.vbp rem Build .chm using HTMLHelp Workshop echo Building ActiveLock2.chm... hhc vbdox\help.hhp rem Move ActiveLock2.chm out of vbdox directory into src directory (same dir where dll is) -move vbdox\ActiveLock2.chm src\ -if %1 == docs goto done +move vbdox\ActiveLock2.chm bin\ +if "%1" == "docs" goto done rem ========================================================================================= rem Build the Installer @@ -98,7 +147,10 @@ :installer echo Building the ActiveLock Installer... makensis ..\installer\ActiveLock.nsi +goto done +:error +echo Build failed due to errors. Please check the logs. +type build.log :done echo Build Completed! -pause ENDLOCAL |