 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Stephan Guest
|
Posted: Mon Aug 23, 2004 12:14 pm Post subject: RC files for packages, or: how do you build a dozen BPLs? |
|
|
Hi guys,
I have raised this issue in a couple of other newsgroups, but since
there doesn't seem to be a technical solution to this (and no Borland or
TeamB member shed some light), I suspect this probably is more of a
topic for this newsgroup.
When creating EXEs and DLLs, I can disable the "version info" feature in
the project options of the IDE, in order to use RC files instead. This
is eminently useful when using larger build processes (including
testing, documentation builds, creating installers, etc.) which are run
via scripts (in my case Makefiles) utilizing dcc32.exe.
But why isn't that permitted for DPKs/BPLs?
Create a new package, go to "Project options", "version info" tab: the
check box "include version information in project" is already checked,
but grayed out. I've tested it with D5 - D7.
The problem is, you can delete RES files and {$R *.res} lines all you
want, as soon as you enter the project options window again and click
"o.k.", even without changing anything, the RES file and the {$R *.res}
lines are back.
In other words, Delphi insists on managing version info for DPKs
exclusively via the IDE (DOF file). This creates problems when dcc32.exe
is used in a bigger picture, since there's not secure way to tell the
IDE to keep its hands off the version info, because it's managed
somewhere else! Again, no such trouble for EXE and DLL creation.
Does anybody know why?
Am I missing something? How do those of you who create BPLs using
dcc32.exe get this under control?
Thanks in advance for any info,
Stephan
|
|
| Back to top |
|
 |
Jacob Thurman Guest
|
Posted: Mon Aug 23, 2004 6:58 pm Post subject: Re: RC files for packages, or: how do you build a dozen BPLs |
|
|
| Quote: | Am I missing something? How do those of you who create BPLs using
dcc32.exe get this under control?
|
I use a little utility that will change the version info of an executable
file, and run it after the compilation stage of the build process. The tool
I use is at
http://www.codeguru.com/tools/standalonetools/article.php/c1403/, but it has
limitations. There are probably better tools out there... or you could
write your own. The point is, I ignore the version info placed there by
Delphi, and put the "correct" version info in after it's already been
compiled.
--
Jacob Thurman
Creator of Castalia - The ultimate Delphi Productivity Suite.
http://www.delphi-expert.com/
Super-Smart Syntax Highlighting
Fast, powerful code templates
Code Navigation Facilities you've only dreamed of
Automated Refactoring
Inline variable declaration
On-the fly syntax checking
|
|
| Back to top |
|
 |
Stephan Guest
|
Posted: Wed Aug 25, 2004 8:56 am Post subject: Re: RC files for packages, or: how do you build a dozen BPLs |
|
|
Hi Jacob,
thanks for your reply.
I didn't think of changing the version number in the BPL itself, that
should be possible.
I just wish Borland/Delphi would not force you to resort to these
"tricks"...
All the best,
Stephan
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|