aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/module-providers/Qt/templates/qml.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2021-04-09 16:08:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2021-04-12 09:26:15 +0000
commitbf0a3750e0845eeba3814a4f16c20d112181e280 (patch)
tree2b60efefa5da909caa945b90dad84b2186e4fccc /share/qbs/module-providers/Qt/templates/qml.qbs
parentc3e10d620124f18452f0f059d3f3d2a4a7c632ae (diff)
Qt support: Fix possible command line length issue with qmlimportscanner
When there's a lot of QML files, we can hit the dreaded Windows limit for maximum command line length. Detect this condition and call the tool repeatedly if necessary. Fixes: QBS-1633 Change-Id: I20d123d6184eab08c5fa280a7c4811a753275f1f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'share/qbs/module-providers/Qt/templates/qml.qbs')
-rw-r--r--share/qbs/module-providers/Qt/templates/qml.qbs2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/module-providers/Qt/templates/qml.qbs b/share/qbs/module-providers/Qt/templates/qml.qbs
index f608ba4dd..af7b0fb5f 100644
--- a/share/qbs/module-providers/Qt/templates/qml.qbs
+++ b/share/qbs/module-providers/Qt/templates/qml.qbs
@@ -144,7 +144,7 @@ QtModule {
qmlInputs = [];
var scannerData = Qml.scannerData(product.Qt.qml.qmlImportScannerFilePath,
qmlInputs.map(function(inp) { return inp.filePath; }),
- product.Qt.qml.qmlPath);
+ product.Qt.qml.qmlPath, product.qbs.targetOS);
var cppFile;
var listFile;
try {