OSDN Git Service

Qt4ProjectManager: Omit .pro file warning if that is requested.
authorChristian Kandeler <christian.kandeler@nokia.com>
Mon, 8 Nov 2010 16:29:03 +0000 (17:29 +0100)
committerChristian Kandeler <christian.kandeler@nokia.com>
Mon, 8 Nov 2010 16:33:32 +0000 (17:33 +0100)
Normally, we print a debug message about INSTALLS += var
with var.files being empty.
Don't do this if var.CONFIG contains "no_check_exist".

src/plugins/qt4projectmanager/qt4nodes.cpp

index 836c151..e43286d 100644 (file)
@@ -2014,8 +2014,11 @@ void Qt4ProFileNode::setupInstallsList(const ProFileReader *reader)
             m_installsList.targetPath = itemPath;
         } else {
             if (itemFiles.isEmpty()) {
-                qDebug("Ignoring INSTALLS item '%s', because it has no files.",
-                    qPrintable(item));
+                if (!reader->values(item + QLatin1String(".CONFIG"))
+                    .contains(QLatin1String("no_check_exist"))) {
+                    qDebug("Ignoring INSTALLS item '%s', because it has no files.",
+                        qPrintable(item));
+                }
                 continue;
             }
             m_installsList.items << InstallsItem(itemPath, itemFiles);