From bb02a0900f4b515e3d10133ecf7c7c8dc72979cb Mon Sep 17 00:00:00 2001
From: Christian Kandeler <christian.kandeler@qt.io>
Date: Fri, 19 Aug 2016 16:11:44 +0200
Subject: [PATCH] List qmake project files in qbs project

Change-Id: Ib0c68398ce80e1de2ee6a2e4385ffd38baec0bd2
Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
---
 qtcreator.qbs | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/qtcreator.qbs b/qtcreator.qbs
index fb549ba0a7d..450cb495f71 100644
--- a/qtcreator.qbs
+++ b/qtcreator.qbs
@@ -35,6 +35,19 @@ Project {
         }
     }
 
+    Product {
+        name: "qmake project files"
+        files: {
+            var list = ["**/*.pr[io]"];
+            var props = [additionalPlugins, additionalLibs, additionalTools, additionalAutotests];
+            for (var i = 0; i < props.length; ++i) {
+                for (var j = 0; j < props[i].length; ++j)
+                    list.push(props[i][j] + "/**/*.pr[io]");
+            }
+            return list;
+        }
+    }
+
     AutotestRunner {
         Depends { name: "Qt.core" }
         Depends { name: "qtc" }
-- 
GitLab