[Lazarus] Lazarus Version
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Nov 8 23:23:37 CET 2016
On Tue, 8 Nov 2016 21:45:16 +0100 (CET)
Michael Van Canneyt <michael at freepascal.org> wrote:
> packagename_version.p(p|pas)
Ok. Although if we make it configurable, we can use it for
lclversion.pas as well.
>[...]
> [x] Generate unit with version number
Ok. Needs update when saving the package.
> [x] Generate version numbers for all used packages
Ok. Needs update when compiling the package. So the IDE and
lazbuild can do that. fpmake cannot.
> Then
>
> unit a_version;
>
> interface
> AVersionStr = '1.2.3';
> BversionStr = '2.3.4';
To make compare operations simple I suggest to use the lclversion
scheme:
const
lcl_major = 1;
lcl_minor = 7;
lcl_release = 0;
lcl_patch = 0;
lcl_fullversion = ((lcl_major * 100 + lcl_minor) * 100 +
lcl_release) * 100 + lcl_patch;
lcl_version = '1.7';
> implementation
>
> end.
>
> Or somesuch...
Mattias
More information about the Lazarus
mailing list