[Qt-interest] Auto-Incremented Build Number for my Project
Josiah Bryan
jbryan at productiveconcepts.com
Thu Sep 17 16:32:04 CEST 2009
Adam Gibson wrote:
> This may help you:
>
> http://wiki.qtcentre.org/index.php?title=Version_numbering_using_QMake
Hey thanks! On first glance, looks perfect! I'll try and implement it
today for both linux and windows.
Thanks again for the quick response.
Cheers!
-josiah
>
> On Thu, Sep 17, 2009 at 10:11 PM, Josiah Bryan
> <jbryan at productiveconcepts.com <mailto:jbryan at productiveconcepts.com>>
> wrote:
>
> Hey All -
>
> Here's the goal: An auto-incremented build number that I can access from
> my program (via a define or symbol - dont matter), that increments each
> time I call make (on linux) or build it with QtCreator on windows.
>
> On linux - thats easy - just hack Makefile with some custom build target
> definitions and run a small perl or bash script each build to increment
> a 'special' file or whatever. But since the Makefile is auto-gen'd by
> qmake, I imagine I'd have to do something fancy in my .pro file to
> re-add my Makfile-changes every time qmake regens the project file. On
> windows, I'm a bit murky - not sure how I'd get it done there.
>
> What I'm wondering is if there is any "Standard" way using .pro files to
> tell qmake to autoinc a build number for me without me having to do any
> special "hacks". Anyone have any leads or pointers on it? Or am I on my
> own for this one?
>
> Thanks!
> -josiah
>
> --
> Josiah Bryan
> Productive Concepts, Inc.
> jbryan at pciint.com <mailto:jbryan at pciint.com>
> (765) 964-6009, ext. 224
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com <mailto:Qt-interest at trolltech.com>
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
-=-=-=-=-=-=-=-=-=-=-=-=-
Josiah Bryan
Productive Concepts, Inc.
jbryan at pciint.com
(765) 964-6009, ext. 224
More information about the Qt-interest-old
mailing list