[Qt-interest] Multiple qmake messages

Scott Aron Bloom Scott.Bloom at sabgroup.com
Sun Sep 27 18:39:49 CEST 2009


Tanks for the build_pass... never knew about that config!

-----Original Message-----
From: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] On Behalf Of Sean Harmer
Sent: Sunday, September 27, 2009 6:28 AM
To: Qt Interest (qt-interest at trolltech.com)
Subject: Re: [Qt-interest] Multiple qmake messages

Michael Bieber wrote:
>> Because qmake parses the pro-file more than once.
>> One initial, one for debug and one for release configuration iirc.
>>     
>
> I thought something along those lines, but this should allow more 
> control, shouldn't it?
>   
It does. Try a constuct like this:

message(Message A - Printed 3 times)

build_pass {
    message(Message B - Printed 2 times)

    CONFIG(debug, debug|release){
        message(Message C - Printed 1 time)
    }
    CONFIG(release, debug|release){
        message(Message D - Printed 1 time)
    }
}

We use type of structure all the time to set different settings (output 
dir, ui dir etc.) for debug and release builds.

HTH,

Sean

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest




More information about the Qt-interest-old mailing list