--- In advanced_delphi@yahoogroups.com, Eduardo C <ecos...@...> wrote:
>
> Hi.
> 
> My solution was to create two project files with basically the same
files
> but each writing DCUs and EXEs to different directories and with
different
> compiler directives. This way there is no risk of mingling debug and
final
> units and the only price to pay is to remember to add new files to both
> projects and use a little more of disk space. Though I bought Delphi
2007
> some time ago, I'm just starting to use it now but plan to do
something like
> that.
> 
> Eduardo
> 


My really simple solution is to use this include file

here is a sample
{$Define IsBuild}

{$IfDef IsBuild}
  {$O+} {$R-} {$I-} {$D-} {$L-} {$C-}
{$Else}
  {$O-} {$R+} {$I+} {$D+} {$L+} {$C+}
{$EndIf}


If I doing a delivery build then {$Define IsBuild} 
else put all the debugging stuff in

Then a bit further down I have this
{$IfDef IsBuild}
  {$UnDef CheckEncounterPlaceId}
  {$UnDef AllowEmergencyShutDown }
{$Else}
  //{$Define CheckEncounterPlaceId}
{$EndIf}

All nice and simple and in one place. I also include or exclude
features and objects at my centralised control

Mick


Reply via email to