aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/module-providers/Qt/templates/qml.js
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-05-29 15:03:06 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2021-05-31 10:40:35 +0000
commit0ff1cfe032b87b0f2032731c9da35db6a345883f (patch)
tree67237e27056591b250856ef669166f7a0d4a7d18 /share/qbs/module-providers/Qt/templates/qml.js
parentc64f40821e97bd463e7e518f6febffe200e20978 (diff)
Use qbs.hostOS instead of qbs.targetOS in qml.js
... to check for the dreaded Windows limit for maximum command line length. Amends bf0a3750e0845eeba3814a4f16c20d112181e280. Task-number: QBS-1633 Change-Id: I3735d4f327d440a261666f5722a5715b9a31b320 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/module-providers/Qt/templates/qml.js')
-rw-r--r--share/qbs/module-providers/Qt/templates/qml.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qbs/module-providers/Qt/templates/qml.js b/share/qbs/module-providers/Qt/templates/qml.js
index e48c9230e..ea8293f2d 100644
--- a/share/qbs/module-providers/Qt/templates/qml.js
+++ b/share/qbs/module-providers/Qt/templates/qml.js
@@ -3,12 +3,12 @@ var FileInfo = require("qbs.FileInfo");
var Process = require("qbs.Process");
var TextFile = require("qbs.TextFile");
-function scannerData(scannerFilePath, qmlFiles, qmlPath, targetOS)
+function scannerData(scannerFilePath, qmlFiles, qmlPath, hostOS)
{
var p;
try {
p = new Process();
- if (!targetOS.contains("windows")) {
+ if (!hostOS.contains("windows")) {
p.exec(scannerFilePath, ["-qmlFiles"].concat(qmlFiles).concat(["-importPath", qmlPath]),
true);
return JSON.parse(p.readStdOut());