Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [Moved] qmake and pro files question
Qt 6.11 is out! See what's new in the release blog

[Moved] qmake and pro files question

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 2.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    petro.kazmirchuk
    wrote on last edited by
    #1

    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")
      }@
      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>
      }@
      from what sources qmake finds out whether <condition> is true or false, besides CONFIG var?
    4. 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.
    1 Reply Last reply
    0
    • joborJ Offline
      joborJ Offline
      jobor
      wrote on last edited by
      #2
      1. 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.

      1. Yes its true. :)

      2. http://doc.qt.nokia.com/4.7/qmake-advanced-usage.html#scopes

      3. We're currently investigating. Nothing concrete yet.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved