[Lazarus] Build number in my application
Henry Vermaak
henry.vermaak at gmail.com
Wed Nov 19 14:07:12 CET 2008
2008/11/19 Graeme Geldenhuys <graemeg.lists at gmail.com>:
> Hi,
>
> My current project is in SubVersion. I user the SubVersion revision
> number as my Build number in my project version. Currently I use a
> revision.inc file which I have to manually edit from time to time (I'm
> lazy doing after every commit).
>
> Is there a way I can somehow tell Lazarus to automatically populate
> that file with the correct revision number *before* each compile?
before each compile, you can execute a program (see
lazarus/tools/svn2revisioninc.pas) that puts the revision number in a
revision.inc, or something. see the "compilation" tab of "compiler
options". you can obviously use this method in a Makefile, too (like
lazarus does).
henry
More information about the Lazarus
mailing list