Is it possible to add build events only for a specific build configuration in Delphi 2007 ?
I use 2007 but would be interested in what you can do in 2009 also.
Cheers Sam
Yes!
As you can have separate defines in each build configuration. You can check your project defines for conditional build processing.
I use something like that:
echo $(DEFINES) | find "RELEASE"> nul
if not errorlevel 1 goto
release
echo $(DEFINES) | find "DEBUG" > nul
if not errorlevel 1 goto debug
goto end
:release
echo Processing RELEASE Build:
...
goto end
:debug
echo Processing DEBUG Build:
..
goto end
:end
No.
You can have (resource) compiler settings for each build configuration in Delphi 2009. But this does not apply to the other settings.
You can fake it, but it takes some time:
Code:
uses
..
{$IFDEF DEBUG}
confDebug,
{$ELSE}
confRelease,
{$ENDIF}
..
It is a bit cumbersome, but you can do what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With