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

Josiah Bryan jbryan at productiveconcepts.com
Thu Sep 17 16:11:28 CEST 2009


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




More information about the Qt-interest-old mailing list