Re: Debug vs. Release build in Delphi?
From: Ray A. (nospam_at_hotmail.com)
Date: 03/24/05
- Next message: Leonel: "Re: D2005 Performance Question"
- Previous message: Jim Cooper: "Re: Anyone from Singapore or visited there?"
- In reply to: Alan Garny: "Debug vs. Release build in Delphi?"
- Next in thread: Steve Williams: "Re: Debug vs. Release build in Delphi?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Mar 2005 15:31:22 -0800
Alan Garny wrote:
> Hi,
>
> I was wondering what you guys' approach is when it comes to
> generating either a debug or release version of your application. My
> project options are currently such that I can generate a full debug
> version of my application. This said, whenever I want to generate a
> release version, I have to go to the project options and select the
> optimization box, unselect the debugging ones, etc. So yes, not
> really ideal... So, is there a way that would allow me, through the
> use of a swtich/conditional define/etc. to let me generate either a
> debug or release version of my application?
>
> Cheers, Alan.
I found building a simple build program very helpful.
Using debug and production templates for *.dof, *.cfg, *.rc, *.dpr,
*.dpk files, I have a build manager program rewrite the project options
and toggle directives as necessary if I select to make a production or
debug build.
I find that a very important feature to prevent "rouge" project options
from making it into the production build. It also gives the developers
some freedom to use whatever options they need without having to worry
about what will happen when the production manager goes to make a build.
The build program will then create the necessary batch file and run the
resource and command line compiler for selected projects and spit out a
log file so the compile status can be reviewed.
Combine an include file with directives defined for debugging and you
have a simple but effective solution for only, at most, a few days of
work to build the build program.
Note I think it is wise to generate all debug files to different
folders than the production files in order to keep the production files
stable.
It's also a good idea to compile programs that go out on only one
designated production computer. Doing otherwise is inviting disaster.
Ray A.
- Next message: Leonel: "Re: D2005 Performance Question"
- Previous message: Jim Cooper: "Re: Anyone from Singapore or visited there?"
- In reply to: Alan Garny: "Debug vs. Release build in Delphi?"
- Next in thread: Steve Williams: "Re: Debug vs. Release build in Delphi?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|