Delphi.NET 2007 and project options

Hi,

we use finalbuilder to compile some delphi.net 2007 assemblies. We define our own debug/release settings via script code. This means the project settings are ignored. The problem is that delphi.net fills some compiler directives in the project file (dpk).

An delphi.net assembly project file is appended. As you can see there are settings for assertions, optimization, debug info and so on. The finalbuilder task does not change these settings so the settings we change via script code are ignored.

In an delphi.win32 project all works right. Is this a bug in FB or is there a setting to do it?

 

TIA

 

package XXXX;

{$ALIGN 0}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION OFF}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$IMPLICITBUILD OFF}
{$DEFINE CLR}
{$DEFINE DEBUG}

...

 

 

Hi

You are correct, the delphi.net action does not update the package source. I think the reason I left that out was because I could never get the IDE to make any changes to those settings in the package file either. I have added this functionality to the action, I’ll post here when a new build is available with the change.

Here’s the build with the update package source option :

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1131.exe

Hi,

i have tried the build you provided. I think there are some errors. The original dpk looks like this:

package XXXXX;

{$ALIGN 0}
{$ASSERTIONS ON}
{$BOOLEVAL OFF}
{$DEBUGINFO ON}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS ON}
{$LOCALSYMBOLS ON}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION OFF}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO ON}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $400000}
{$IMPLICITBUILD OFF}
{$DEFINE CLR}
{$DEFINE DEBUG}

The modified dpk:

package XXXX;


ALIGN
{$ASSERTIONS OFF}
{$BOOLEVAL OFF}
{$DEBUGINFO OFF}
{$EXTENDEDSYNTAX ON}
{$IMPORTEDDATA ON}
{$IOCHECKS OFF}
{$LOCALSYMBOLS OFF}
{$LONGSTRINGS ON}
{$OPENSTRINGS ON}
{$OPTIMIZATION OFF}
{$OVERFLOWCHECKS OFF}
{$RANGECHECKS OFF}
{$REFERENCEINFO OFF}
{$SAFEDIVIDE OFF}
{$STACKFRAMES OFF}
{$TYPEDADDRESS OFF}
{$VARSTRINGCHECKS ON}
{$WRITEABLECONST OFF}
{$MINENUMSIZE 1}
{$IMAGEBASE $00400000}
{$IMPLICITBUILD OFF}
{$DEFINE CLR}
{$DEFINE DEBUG}

As you can see the align setting isnt correct. Can you please fix this?

 

TIA

Hi

Here's a build with the fix :

https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1137.exe

 

This build fixes the problem. Thanks.