[ActiveLock-Development] CVS: activelock _build.bat,1.1,1.2
Brought to you by:
ialkan
From: Thanh H. T. <th...@us...> - 2003-10-05 08:53:50
|
Update of /cvsroot/activelock/activelock In directory sc8-pr-cvs1:/tmp/cvs-serv29131 Modified Files: _build.bat Log Message: Added steps for compiling ALUGEN and building the setup. Please refer to instructions at the beginning of this file for running the build. Index: _build.bat =================================================================== RCS file: /cvsroot/activelock/activelock/_build.bat,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- _build.bat 15 Aug 2003 19:04:12 -0000 1.1 +++ _build.bat 5 Oct 2003 08:53:43 -0000 1.2 @@ -13,37 +13,92 @@ rem 6. Add NSIS directory to your PATH rem =================================================================================== rem -rem REVISION HISTORY rem =================================================================================== +rem REVISION HISTORY +rem -------- ------------- --------------------------------------------------------- rem 08.14.03 - th2tran - Created +rem 10.05.03 - th2tran - Added compile steps for ALUGEN and building the setup rem +rem =================================================================================== +rem Usage: To run a build of ActiveLock, run the following command: +rem > _build <target> +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 Build ActiveLock2.dll -rem Make sure we unregister it before rebuilding, so that we don't leave old junk old version stuff in the Registry -echo Unregistering ActiveLock2.dll... -regsvr32 /s /u src\ActiveLock2.dll -echo Building ActiveLock2.dll... +rem Test +if %1 == installer goto installer +if %1 == docs goto docs + +rem ========================================================================================= +rem Compile ActiveLock Libraries +rem ========================================================================================= +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 src\ActiveLock2.vbp +vb6.exe /make ..\alutil\ActiveLockUtil.vbp +echo Copying autil.dll to bin\ directory +copy ..\alutil\alutil.dll bin\ + +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 rem Pause the build now to allow user to update sample app with new ActiveLock2.dll checksum rem TODO: implement +echo Unregistering alugen.dll... +regsvr32 /s /u ..\alugen\lib\alugen.dll +echo Compiling alugen.dll... +vb6.exe /make ..\alugen\lib\ALUGENLib.vbp + +echo Unregistering alugen.dll... +regsvr32 /s /u ..\alugen\lib\alugen.dll +echo Compiling alugen.dll... +vb6.exe /make ..\alugen\lib\ALUGENLib.vbp +move ..\alugen\lib\alugen.dll bin\ + +echo Compiling alugen.exe... +vb6.exe /make ..\alugen\app\ALUGEN.vbp +move ..\alugen\app\alugen.exe bin\ + +if %1 == compile goto done + +rem ========================================================================================= +rem Build API Documentation +rem ========================================================================================= +:docs echo Deleting old vbdox files... del /f /q /s vbdox\*.* -echo Building vbdox help files... +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 -rem TODO: Run Installer - +rem ========================================================================================= +rem Build the Installer +rem ========================================================================================= +:installer +echo Building the ActiveLock Installer... +makensis ..\installer\ActiveLock.nsi +:done echo Build Completed! pause ENDLOCAL |