aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2019-05-01 19:24:05 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2019-05-02 13:41:56 +0000
commit03431c8b352e88753ca66a23fe30c59ae08ab92e (patch)
tree342e9f8171847f16f799dcf91cc468e98f8d57a9
parentb2f7543308cb542a8d841b5bed4365913d58f944 (diff)
Fix reading *.prl file in qml.js
Change-Id: Iebe425c3e10be927666dd19d3be86bd30d8a43cd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--share/qbs/module-providers/Qt/templates/qml.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/qbs/module-providers/Qt/templates/qml.js b/share/qbs/module-providers/Qt/templates/qml.js
index c7829d81b..3a86ce695 100644
--- a/share/qbs/module-providers/Qt/templates/qml.js
+++ b/share/qbs/module-providers/Qt/templates/qml.js
@@ -44,7 +44,10 @@ function getLibsForPlugin(pluginData, buildVariant, targetOS, toolchain, qtLibDi
var pluginLib;
var otherLibs = "";
var line;
- while (line = prlFile.readLine()) {
+ while (!prlFile.atEof()) {
+ line = prlFile.readLine().trim();
+ if (!line)
+ continue;
if (line.startsWith("QMAKE_PRL_TARGET"))
pluginLib = FileInfo.joinPaths(pluginData.path, getPrlRhs(line));
if (line.startsWith("QMAKE_PRL_LIBS")) {