forked from qt-creator/qt-creator
QtSupport: Improve the qtquickcompiler feature detection
Check for qtquickcompiler.prf instead of for the binary. That is compatible with (commercial) Qt < 5.11 with the original qtquickcompiler, and now additionally with Qt >= 5.11 with qmlcachegen. Task-number: QTCREATORBUG-19993 Change-Id: Ie0ba30a590828f13b330a62acb9d1d5c84a5916b Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1815,9 +1815,8 @@ bool BaseQtVersion::isQtQuickCompilerSupported(QString *reason) const
|
||||
return false;
|
||||
}
|
||||
|
||||
const QString qtQuickCompilerExecutable =
|
||||
HostOsInfo::withExecutableSuffix(binPath().toString() + "/qtquickcompiler");
|
||||
if (!QFileInfo::exists(qtQuickCompilerExecutable)) {
|
||||
const QString qtQuickCompilerPrf = mkspecsPath().toString() + "/features/qtquickcompiler.prf";
|
||||
if (!QFileInfo::exists(qtQuickCompilerPrf)) {
|
||||
if (reason)
|
||||
*reason = QCoreApplication::translate("BaseQtVersion", "This Qt Version does not contain Qt Quick Compiler.");
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user