[Qt-creator] Issue regarding the conditional statements in .pro file
ext-manjunath.kambalekar at nokia.com
ext-manjunath.kambalekar at nokia.com
Tue May 17 08:00:46 CEST 2011
Hi,
I am trying to use conditional statements in .pro file.
I found in links that I can use if/else conditions, I can declare my own variable and use built in functions for comparison.
In my case, I wanted to have some specific config for Symbian^3 and some other config for Symbian^1. My code looks like -
MY_VARIABLE var1 = $$SYMBIAN_VERSION
MY_VARIABLE var2 = "Symbian3"
if(isEqual(var1,var2))
{
#config1
}
But, when I run qmake for Symbian^1, function isEqual() still returns true.
Message message($$SYMBIAN_VERSION), prints "Symbian3" for Symbian^3 and "Unknown " for Symbian^1.
Unfortunately, if I check the general hardcoded unequal strings, then also isEqual()returns true, like -
if(isEqual("Monday","Tuesday")) //returns true
{
#config1
}
Please let me know the proper way to use conditional statements, if I have done any mistake here. And any other way to put this thing.
Regards,
Manjunath K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20110517/1fbb5670/attachment.html
More information about the Qt-creator-old
mailing list