Re: [Lazarus] Lazarus Version

2016-11-08 Thread Michael Van Canneyt via Lazarus
On Tue, 8 Nov 2016, Mattias Gaertner via Lazarus wrote: On Tue, 8 Nov 2016 21:45:16 +0100 (CET) Michael Van Canneyt wrote: packagename_version.p(p|pas) Ok. Although if we make it configurable, we can use it for lclversion.pas as well. Your proposals sound all very well. Michael. -- ___

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Mattias Gaertner via Lazarus
On Tue, 8 Nov 2016 21:45:16 +0100 (CET) Michael Van Canneyt 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 ver

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Michael Van Canneyt via Lazarus
On Tue, 8 Nov 2016, Mattias Gaertner via Lazarus wrote: On Tue, 8 Nov 2016 13:08:41 +0100 (CET) Michael Van Canneyt wrote: [...] I'm not sure we're talking about the same thing. I don't know what 'version unit' you mean ? For example lazarus/lcl/lclversion.pas [...] As far as I know, t

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Mark Morgan Lloyd via Lazarus
On 08/11/16 16:30, Mattias Gaertner via Lazarus wrote: On Tue, 8 Nov 2016 15:20:22 +Mark Morgan Lloyd via Lazarus wrote: On 08/11/16 13:30, Mattias Gaertner via Lazarus wrote:> > On Tue, 8 Nov 2016 13:08:41 +0100 (CET)Michael Van Canneyt wrote: > >> [...]> I'm not sure we're talking abo

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Graeme Geldenhuys via Lazarus
On 2016-11-08 16:10, Mattias Gaertner via Lazarus wrote: >> > I don't want to hijack anybody else's thread, but I habitually use that >> > file to get version info so that I can always find out what compiler >> > etc. has been used to build a binary. > How does lclversion tell you the used compil

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Mattias Gaertner via Lazarus
On Tue, 8 Nov 2016 15:20:22 + Mark Morgan Lloyd via Lazarus wrote: > On 08/11/16 13:30, Mattias Gaertner via Lazarus wrote: > > On Tue, 8 Nov 2016 13:08:41 +0100 (CET)Michael Van Canneyt > > wrote: > >> [...]> I'm not sure we're talking about the same thing. I don't know what > >> 'versi

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Mark Morgan Lloyd via Lazarus
On 08/11/16 13:30, Mattias Gaertner via Lazarus wrote: On Tue, 8 Nov 2016 13:08:41 +0100 (CET)Michael Van Canneyt wrote: [...]> I'm not sure we're talking about the same thing. I don't know what 'version> unit' you mean ? For example lazarus/lcl/lclversion.pas I don't want to hijack anybod

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Mattias Gaertner via Lazarus
On Tue, 8 Nov 2016 13:08:41 +0100 (CET) Michael Van Canneyt wrote: >[...] > I'm not sure we're talking about the same thing. I don't know what 'version > unit' you mean ? For example lazarus/lcl/lclversion.pas >[...] > As far as I know, the version number of a lazarus packages lives outside t

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Michael Van Canneyt via Lazarus
On Tue, 8 Nov 2016, Mattias Gaertner via Lazarus wrote: On Sun, 6 Nov 2016 11:59:44 +0100 (CET) Michael Van Canneyt via Lazarus wrote: [...] It would be good to have an option in the package system to write and/or register the package version somewhere, so it is accessible at runtime, and a

Re: [Lazarus] Lazarus Version

2016-11-08 Thread Mattias Gaertner via Lazarus
On Sun, 6 Nov 2016 11:59:44 +0100 (CET) Michael Van Canneyt via Lazarus wrote: >[...] > It would be good to have an option in the package system to write and/or > register the package version somewhere, so it is accessible at runtime, and > an application can query the various packages and their

Re: [Lazarus] Lazarus Version

2016-11-06 Thread Michael Van Canneyt via Lazarus
On Sun, 6 Nov 2016, Mattias Gaertner via Lazarus wrote: Balázs Székely via Lazarus hat am 6. November 2016 um 11:14 geschrieben: Hi, Is there a way to get Lazarus version from a package? I know about LazarusVersionStr constant from {$LazarusDir}/IDE/lazconfig.pp, but that's not accessibl

Re: [Lazarus] Lazarus Version

2016-11-06 Thread Balázs Székely via Lazarus
>>@Mattias >>Use unit lclversion. Thank you! :) Balázs -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Version-tp4050205p4050207.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- __

Re: [Lazarus] Lazarus Version

2016-11-06 Thread Mattias Gaertner via Lazarus
> Balázs Székely via Lazarus hat am 6. November > 2016 um 11:14 geschrieben: > > Hi, > > Is there a way to get Lazarus version from a package? > I know about LazarusVersionStr constant from {$LazarusDir}/IDE/lazconfig.pp, > but that's not accessible from a package. I can create a patch if nece

[Lazarus] Lazarus Version

2016-11-06 Thread Balázs Székely via Lazarus
Hi, Is there a way to get Lazarus version from a package? I know about LazarusVersionStr constant from {$LazarusDir}/IDE/lazconfig.pp, but that's not accessible from a package. I can create a patch if necessary, but I was hopping somebody already did it. Thanks you! Balázs -- View this messag