Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

.pro file questions (custom variables, mkspecs and contains())

$
0
0
My environment is Ubuntu 12.04 LTS, with Qt Creator 2.5.2, 64 bits. I’m dealing with .pro file in a project, trying to figure how it works. I’ve found some inconsistences I’d like to ask about. CUSTOM VARIABLES AND CONTAINS If I write in .pro file MYVAR = "Mommy"; message($$MYVAR) contains( MYVAR , Mommy ) {     message("got Mommy") } contains( MYVAR, Daddy ) {     message("got Daddy")   } compiling gives me this output: Project MESSAGE: Mommy; Project MESSAGE: got Mommy Project MESSAGE: got Daddy “contains( MYVAR, Daddy )” is not working as expected (same with $$MYVAR)!! “contains( MYVAR, Daddy )” block should not be executed, but it does… ¿why? MKSPECS USAGE According to Qt documentation, we can use mkspecs variables to check compiling platform. well, if I put linux-g++-64 {     message("Linux 64 bits with g++") } Building complains with this error: Parse Error ('linux-g++-64') error: [Makefile] Error 3 Why? I’ve check /usr/share/qt4/mkspecs folder and there is a folder called “linux-g++-64”…

Viewing all articles
Browse latest Browse all 13965

Trending Articles