[ActiveLock-Development] CVS: activelock build.bat,NONE,1.1 _build.bat,1.4,NONE
Brought to you by:
ialkan
From: Thanh H. T. <th...@us...> - 2003-10-13 08:32:03
|
Update of /cvsroot/activelock/activelock In directory sc8-pr-cvs1:/tmp/cvs-serv27562 Added Files: build.bat Removed Files: _build.bat Log Message: Renamed _build.bat to build.bat --- NEW FILE: build.bat --- @echo off rem =================================================================================== rem This is the automated build script for ActiveLock2. rem rem Before you can run this script, you'll need to do the following environment setups rem 1. vb6.exe must be in your PATH rem 2. Install vbdox, and add its directory to your PATH rem 3. Install HTMLHelp Workshop, available at rem http://msdn.microsoft.com/library/default.asp?url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp rem 4. Add HTMLHelp Workshop directory to your PATH. (e.g. "C:\Program Files\HTML Help Workshop") rem 5. Download and install NullSoft Install System (NSIS) rem Available at http://nsis.sourceforge.net/site/index.php rem 6. Add NSIS directory to your PATH rem =================================================================================== 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 rem * To build API documentation, use: rem _build docs rem * Running _build specifying any target will run a complete build SETLOCAL rem Delete previous VB compilation log file del build.log 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 echo Compiling alutil.dll... rem Need to make sure vb6.exe is in our system PATH 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. 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-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 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 bin\ if "%1" == "docs" goto done rem ========================================================================================= rem Build the Installer rem ========================================================================================= :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! ENDLOCAL --- _build.bat DELETED --- |