Managing Release and Debug builds

It's useful to manage both release and debug builds of OpenAMQ and the software stack it comes with. Release builds are a lot faster (3-4 times, I guess) but useless if you get a crash. If you use WireAPI for your apps, you'll absolutely want debug builds.

The OpenAMQ projects assume that stuff sits in either of these two directory roots:

%IBASE_HOME%\release
%IBASE_HOME%\debug

So what I've done is write two tiny batch files, release.bat and debug.bat, which I put on my path. The batch files look like this:

@echo off
:- This is release.bat
if %IBASE_HOME%.==. echo Please set IBASE_HOME in your system environment (e.g. IBASE_HOME=c:\ibase)
set BOOM_MODEL=release,mt
set IBASE=%IBASE_HOME%\release
if not exist %IBASE% mkdir %IBASE
set PATH=%IBASE%\bin;%PATH%
prompt release-$p$g

and

@echo off
:- This is debug.bat
if %IBASE_HOME%.==. echo Please set IBASE_HOME in your system environment (e.g. IBASE_HOME=c:\ibase)
set BOOM_MODEL=debug,mt
set IBASE=%IBASE_HOME%\debug
if not exist %IBASE% mkdir %IBASE
set PATH=%IBASE%\bin;%PATH%
prompt debug-$p$g

Note that both files assume you defined IBASE_HOME as a system environment variable.

Add a New Comment