Fix lookup of Info.plist from mkspecs when shadow-building
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Mon, 24 Aug 2015 10:25:29 +0000 (12:25 +0200)
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Tue, 25 Aug 2015 11:38:34 +0000 (11:38 +0000)
Task-number: QTBUG-47450
Change-Id: I87c45154deecd09a5c75f09e607177fa42459e95
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
qmake/generators/mac/pbuilder_pbx.cpp

index 81bb0683ac59e5965836f1d5d2536c5db088be16..7ff1d97b16edb985831b2e4a61a6ea6055bf7636 100644 (file)
@@ -1478,7 +1478,7 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
                         else
                             warn_msg(WarnLogic, "Could not resolve Info.plist: '%s'. Check if QMAKE_INFO_PLIST points to a valid file.", plist.toLatin1().constData());
                     } else {
-                        plist = specdir() + QDir::separator() + "Info.plist." + project->first("TEMPLATE");
+                        plist = fileFixify(specdir() + QDir::separator() + "Info.plist." + project->first("TEMPLATE"), FileFixifyBackwards);
                         QFile plist_in_file(plist);
                         if (plist_in_file.open(QIODevice::ReadOnly)) {
                             QTextStream plist_in(&plist_in_file);
@@ -1505,7 +1505,11 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
                                 QTextStream plist_out(&plist_out_file);
                                 plist_out << plist_in_text;
                                 t << "\t\t\t\t" << writeSettings("INFOPLIST_FILE", "Info.plist") << ";\n";
+                            } else {
+                                warn_msg(WarnLogic, "Could not write Info.plist: '%s'.", plist_out_file.fileName().toLatin1().constData());
                             }
+                        } else {
+                            warn_msg(WarnLogic, "Could not open Info.plist: '%s'.", plist.toLatin1().constData());
                         }
                     }
                 }