Hello!
I have Qt SDK 1.1 (installed with online installer) on Windows + MinGW.
And I have a few misunderstandings with *.pro files usage.
1. When I use this:
CONFIG(release, debug|release) {
message("in release")
} else {
message("in debug")
}
CONFIG(release, debug|release) {
message("in release")
} else {
message("in debug")
}
To copy to clipboard, switch view to plain text mode
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
2. 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?
3. If I use the syntax
<condition> {
<command or definition>
}
<condition> {
<command or definition>
}
To copy to clipboard, switch view to plain text mode
from what sources qmake finds out whether <condition> is true or false, besides CONFIG?
4. About a year ago I read an article at qt.nokia.com 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.
Bookmarks