Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6840

Qt4ProjectManager should parse 'for' for inactive configurations

XMLWordPrintable

    • 29957687768ebbe97de778b5286670dd22486fb9

      Consider the following configurations, in which dummy is not set as an active configuration:

      #1
      SOURCES += foo1/bar.cpp foo2/bar.cpp
      
      #2
      dummy {
        SOURCES += foo1/bar.cpp foo2/bar.cpp
      }
      
      #3
      DIRS = foo1 foo2
      for(dir, DIRS):SOURCES += $${dir}/bar.cpp
      
      #4
      DIRS = foo1 foo2
      dummy {
        for(dir, DIRS):SOURCES += $${dir}/bar.cpp
      }

      The project manager uses SOURCES and HEADERS also from inactive configurations, which is useful.

      First 3 configurations will result in an equivalent source tree in QtC. The 4th one will not display the files in the project tree.

        For Gerrit Dashboard: QTCREATORBUG-6840
        # Subject Branch Project Status CR V

            buddenha Oswald Buddenhagen
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes