Is there a FOSS batch compiling solution for Delphi that takes version as an input parameter?
I am using Delphi 7 and this remains the most tedious operation. Are there any other solutions, workarounds to make this easy.
Is there a FOSS batch compiling solution for Delphi that takes version as an input parameter?
I am using Delphi 7 and this remains the most tedious operation. Are there any other solutions, workarounds to make this easy.
Not really sure on your question, but I'm going to assume you are asking how to set the version number for a product from a batch file when compiling. I previously used a program called StampVer, You will need to already have version information in the file to use StampVer. StampVer is Freeware but not Open Source.
A good commercial solution that I strongly recommend would be FinalBuilder, which also has the ability to manipulate the version information in an executable as well as compile your Delphi application.
You could, for example, specify the version information in a resource script (.rc file) whose compiled representation you link inside your project source (.dpr) using something akin to {$R myver.res}. You can then have your batch build system generate the .res file from the .rc file using brcc32.exe (included in any Delphi version.)
We are using custom .res file - created from template during building by TortoiseSVN's WCREV tool (it takes revision number and replace keywords in template file).
Delphi 2006, no add-ons. I can post template and script tomorrow if you want.
http://svn.berlios.de/svnroot/repos/dzchart/utilities/dzPrepBuild/trunk/
might fit the bill.
"PrepBuild is a commandline tool for handling the version information for Delphi projects when compiling using the dcc32.exe commandline compiler. It can also be used as a Pre-Build tool in Delphi 2007."
Using the (MPL) code from the XN Resource Editor, it's not very hard to write your own: