Building Delphi project CodeGear 2007

Hello,

I have a script that was made on a build machine, this machine was giving us problems so we replaced it. I copied the script to the new machine and i started building with it. After a few tweaks in the installation i got it to work. So far so good.

Now we are starting to build for our coming release and i noticed that the packages and exe are all build with debug info while these are turned off in the action. On the previous machine this all worked fine, but on the new machine that is running version 6.2.0.1265 i can't get the build so that the debug info is left out.

Is this something anyone else has seen or is it something in my configuration. Making a new action didn't work.

Regards,

Richard Floor

Hi Richard

One of the most common issue with delphi packages is that some compiler options are actually stored in the .dpk file, e g:

{$ALIGN 8}{$ASSERTIONS ON}{$BOOLEVAL OFF}{$DEBUGINFO ON}{$EXTENDEDSYNTAX ON}

These settings in the dpk take precedence over the options passed to the command line compiler. To Counter this, the Delphi action in FinalBuilder has an option to update the package source to update those compiler options with the settings you want for your builds. If turning that option on doesn’t solve the problem then please send us ( support at finalbuilder.com) your finalbuilder project file and one of the package files (.dpk andf .dproj) so we can take a look and see what is happening.

Hi Vincent,

I see the option you mention, the only problem is that it is disabled. When is this enabled?

Regards

Richard Floor

This option is only enabled for projects which are packages (.dpk).

Hi Vincent,

I tested it and you are right. This means that i have to redesign my build. I don’t have .dpk at design time in the edit for the project file.

Some other questions:
When i check this option when i have .dpk in the edit i can check it. And when i remove the .dpk the option is still checked. Do you think it will still do it’s job?
Or do i have to keep the .dpk in the edit?

I place the package to build in variable that is used in the edit. So when the .dpk has to be in the edit i have to redesign.

Regards

Richard Floor

Hi Richard

I just checked the source code and what you have done should work, however I would recommend you put this line in the BeforeAction script event :

Action.UpdatePackageSource = true

This should make sure it works.

Hi Vincent,

Putting .dpk in the edit and then checking the option, and removing the .dpk works. But as you recommended i also did put the code in the before action script.

Thanks for the fast responce.

Regards

Richard Floor