Delphi Builds Suck

Well, I never throught I’d write a post with that title.

I’m trying to script builds of Delphi programs in PowerShell. We now have an excellent script for interfacing with Vault and getting latest versions of source code from that. It’s sweet.

But building Delphi programs from the command line remains a mystery. There simply are no tools for doing that. Yes, you can run “dcc32″ from the command-line, but if you want to auto-update the build number, well… sorry, can’t be done. Yes, it’s written down in the .dof file, but it’s not used by dcc32, as .cfg isn’t used by bds. All those options are fetched from the compiled .res file, but there is no way to make the .res file manually, it is maintained solely by the IDE.

How is this possible? Who thought this up? Delphi has existed now for… how many years? Doesn’t anyone think?

No, I don’t want to use FinalBuilder, I want to use Powershell, because it’s free and I can write my own scripts without using a clumsy IDE for that as well.

So now I have to write a number of hacks for maintaining this: One that builds a default dcc32.cfg file from the loaded bpl packages, and one that updates the resource files.

Thanks, Borland/CodeGear.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>