[Qt-interest] Creating build configurations in .pro file

Qt Quest qt.quest at yahoo.com
Tue Mar 9 22:29:36 CET 2010


Hi André,
Thank you for your reply. I've added the text below. Can those build configurations be available in Qt creator, so that I can choose compile a "demo"?
Thanks again!

demo {
    DEFINES += PRODUCT_DEMO
}
standard {
    DEFINES += PRODUCT_STD
}


--- On Tue, 3/9/10, André Somers <andre at familiesomers.nl> wrote:

From: André Somers <andre at familiesomers.nl>
Subject: Re: [Qt-interest] Creating build configurations in .pro file
To: qt-interest at trolltech.com
Date: Tuesday, March 9, 2010, 9:20 PM






 






Yes, that is possible. Create multiple sections using functions
like contains(). You can even set the DEFINES from within those pro file
sections, and use a configuration script or a qmake call to configure your
project for the different configurations. 

   

André 

   



Van: qt-interest-bounces at trolltech.com
[mailto:qt-interest-bounces at trolltech.com] Namens Qt Quest

Verzonden: dinsdag 9 maart 2010 21:50

Aan: Qt-interest at trolltech.com

Onderwerp: [Qt-interest] Creating build configurations in .pro file 



   


 
  
  Hi all,

  

  Is there a way to create different build configurations in a .pro file? For
  example: adding 3 configurations: demo, standard, and professional. For each
  I want to just modify the DEFINES macro in the .pro file. Is it possible?

  Currently I have the Debug|Release options, which are relevant only for
  development...

  

  I know there is a way to do it in Qt creator but it only modifies the
  .pro.user file, which if I understand correctly, are local configuration for
  this developer, but not for another, so that .pro.user are not part of the
  main source tree.

  

  Thank you! 
  
 


   



 


-----Inline Attachment Follows-----

_______________________________________________
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/20100309/8c9fb376/attachment.html 


More information about the Qt-interest-old mailing list