[Qt-interest] Auto-Incremented Build Number for my Project

Adam Gibson lethalmonk at gmail.com
Thu Sep 17 16:28:30 CEST 2009


This may help you:

http://wiki.qtcentre.org/index.php?title=Version_numbering_using_QMake

On Thu, Sep 17, 2009 at 10:11 PM, Josiah Bryan <
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
> (765) 964-6009, ext. 224
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090917/7935201e/attachment.html 


More information about the Qt-interest-old mailing list