[Moved] qmake and pro files question
-
Hello!
I have Qt SDK 1.1 (installed with online installer) on Windows + MinGW.
And I have a few misunderstandings with *.pro files usage.- When I use this:
@CONFIG(release, debug|release) {
message("in release")
} else {
message("in debug")
}@
and compile in release mode, I get the following output:
Project MESSAGE: in release
Project MESSAGE: in release
Project MESSAGE: in debug
Why do I get 3 messages instead of 1? why they are different?
When I compile in debug mode, I get the following output:
Project MESSAGE: in debug
Project MESSAGE: in debug
Project MESSAGE: in release - From the documentation about CONFIG variable:
"Since the debug option overrides the release option when both are defined in the CONFIG variable..."
is it really true? - If I use the syntax
@<condition> {
<command or definition>
}@
from what sources qmake finds out whether <condition> is true or false, besides CONFIG var? - About a year ago I read an article here that Qt software is considering migration to another build system (e.g. CMake) or developing its own. Are there any news in this area?
Thanks in advance.
- When I use this:
-
- The reason why you get three messages is the following: qmake goes through three stages when generating the Makefile(s) for your project. Once for debug, release and the metamakefile.
See the description of debug_and_release and build_pass here http://doc.qt.nokia.com/4.7/qmake-variable-reference.html#config for more insight.
-
Yes its true. :)
-
http://doc.qt.nokia.com/4.7/qmake-advanced-usage.html#scopes
-
We're currently investigating. Nothing concrete yet.