Re: Package Names
Shortcut to this article

Re: Package Names

Hi Lucian,

Well, I like to think that Raize Components is one of the big component players, and we do use this particular feature, and we do support multiple versions with our product.
And yes, as you note for developers building for one version of Delphi and upgrading to a newer version things are much easier. However, even a component provider supporting multiple versions of Delphi can take advantage of the LIBSUFFIX as well.
In particular, our RaizeComponentsVcl.dpk file looks like this:
package RaizeComponentsVcl;
{$R 'RaizeComponentsVcl.res'}
{$ALIGN 8} //... other directives deleted {$IMPLICITBUILD OFF} {$I}
{$IFDEF VCL60}   {$I} {$ENDIF} {$IFDEF VCL70}   {$I} {$ENDIF} {$IFDEF VCL90}   {$I} {$ENDIF} {$IFDEF VCL100}   {$I} {$ENDIF}
requires   Vcl,   VclX;

The LibSuffix include files simply have the {$LIBSUFFIX 'nn'} directive listed. The appropriate include file isused based on the defines established in the file.
And yes, it is a bit cumbersome for us to setup, but once it's done, we do not have to change it. What's more important, is that our customers simply reference RaizeComponentsVcl.dcp in their packages, and they do not have to do anything when they switch versions of Delphi.

> The suffix is included in the source of the DPK file. So, if you have
> to maintain a package for multiple versions of Delphi, you would have
> to take care of *that* every time you compile the package, to make sure
> the suffix is the one you need at the moment. Practically, the
> directive is cool if you just go up with your package and never need to
> compile it with a lesser version of Delphi. I think that's why this
> feature is practically unused by big component players, as far as I can
> see.
FYI: Phrase searches are enclosed in either single or double quotes
24-Jul 11:00 utc Operating system upgrade in process, expect some down time.
Originally created by
Thu, 19 Sep 2019 00:55:28 UTC
Copyright © 2009-2019
HREF Tools Corp.