[Qt-interest] passing in compile flags from qmake

Marek Bronowicki marek at cyberdeus.pl
Mon Mar 29 08:39:10 CEST 2010


Hmmm
Maybe it's better to use QSettings? It will have always the same config 
on the same machine.
Regards,
Marek


W dniu 2010-03-27 00:38, David Boosalis pisze:
> On one platform I have a mysql password set as "passwordA", on the 
> other platform I have set to "passwordB". I just comment out one line 
> or the other.  Both platforms share the same CVS source code, and 
> although it is much to vi the source and comment out the wrong password as
>
> //QString password = "passwordA";
> QString password = "passwordB";
>
> I'd like to add it as a QMake or Make option, so I do not have to edit 
> the file.  What I am asking is how do I pass a #define to the compiler
> I invision the source code to look something like this.
>
> #ifdef platfromA
> QString password = "passwordA";
> #else
> QString password = "passwordB";
> #endif
>
> How does one set such a flag in project file ?
>
> Thanks in advance for any help
> -David
>
>
> _______________________________________________
> 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/20100329/e22a476a/attachment.html 


More information about the Qt-interest-old mailing list