summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-06-30 10:10:46 +0200
committerLiang Qi <liang.qi@qt.io>2017-06-30 10:10:46 +0200
commit2ca27f265cc46e0409e9af873f600644e9c042d3 (patch)
tree105d52d38e6f85e83f838369c57eb0437cb9f887
parent434681c84a931750f001a6acfc22d9c94105b5bb (diff)
parentdfda6f14b3e210a33b71ef1c6fa3c75a9c866cce (diff)
downloadqttools-2ca27f265cc46e0409e9af873f600644e9c042d3.tar.gz
Merge remote-tracking branch 'origin/5.9.1' into 5.9
Change-Id: I590e937321b652bf15317b28a5601aa4e3926556
-rw-r--r--dist/changes-5.9.163
-rw-r--r--src/windeployqt/main.cpp71
2 files changed, 111 insertions, 23 deletions
diff --git a/dist/changes-5.9.1 b/dist/changes-5.9.1
new file mode 100644
index 000000000..131dd636f
--- /dev/null
+++ b/dist/changes-5.9.1
@@ -0,0 +1,63 @@
+Qt 5.9.1 is a bug-fix release. It maintains both forward and backward
+compatibility (source and binary) with Qt 5.9.0.
+
+For more details, refer to the documentation included in this
+distribution. The documentation is also available online:
+
+http://doc.qt.io/qt-5/index.html
+
+The Qt version 5.9 series is binary compatible with the 5.8.x series.
+Applications compiled for 5.8 will continue to run with 5.9.
+
+Some of the changes listed in this file include issue tracking numbers
+corresponding to tasks in the Qt Bug Tracker:
+
+https://bugreports.qt.io/
+
+Each of these identifiers can be entered in the bug tracker to obtain more
+information about a particular change.
+
+General
+-------
+
+- [QTBUG-60926] Fixed building of qdoc documentation with a static Qt.
+
+androiddeployqt
+---------------
+
+- [QTBUG-60918] Fixed deployment of QtQuick.Controls 1 and QtQuick.Dialogs.
+
+macdeployqt
+-----------
+
+- [QTBUG-59609] Icon engines are now deployed.
+
+qtdiag
+------
+
+- Show more useful information about styles and platform themes.
+- [QTBUG-60962] Changed logic to determine name of ANGLE libraries by
+ existence.
+
+Qt Assistant
+------------
+
+- Fixed the build with qtwebkit.
+- Fixed availability of widget arrows in the search result.
+
+Qt Designer
+-----------
+
+- [QTBUG-61009] Fixed crash in "Go to slot" dialog when no signal is
+ selected.
+
+
+Qt Property Browser
+-------------------
+
+- Fixed build breakage when qreal is defined as float.
+
+windeployqt
+-----------
+
+- [QTBUG-61127] Added support of deploying Qt5GamePad with plugins.
diff --git a/src/windeployqt/main.cpp b/src/windeployqt/main.cpp
index ed7c39c73..3f15591f7 100644
--- a/src/windeployqt/main.cpp
+++ b/src/windeployqt/main.cpp
@@ -1020,6 +1020,42 @@ static QString libraryPath(const QString &libraryLocation, const char *name,
return result;
}
+static QString vcDebugRedistDir() { return QStringLiteral("Debug_NonRedist"); }
+
+static QString vcRedistDir()
+{
+ const char vcDirVar[] = "VCINSTALLDIR";
+ const QChar slash(QLatin1Char('/'));
+ QString vcRedistDirName = QDir::cleanPath(QFile::decodeName(qgetenv(vcDirVar)));
+ if (vcRedistDirName.isEmpty()) {
+ std::wcerr << "Warning: Cannot find Visual Studio installation directory, " << vcDirVar
+ << " is not set.\n";
+ return QString();
+ }
+ if (!vcRedistDirName.endsWith(slash))
+ vcRedistDirName.append(slash);
+ vcRedistDirName.append(QStringLiteral("redist"));
+ if (!QFileInfo(vcRedistDirName).isDir()) {
+ std::wcerr << "Warning: Cannot find Visual Studio redist directory, "
+ << QDir::toNativeSeparators(vcRedistDirName).toStdWString() << ".\n";
+ return QString();
+ }
+ const QString vc2017RedistDirName = vcRedistDirName + QStringLiteral("/MSVC");
+ if (!QFileInfo(vc2017RedistDirName).isDir())
+ return vcRedistDirName; // pre 2017
+ // Look in reverse order for folder containing the debug redist folder
+ const QFileInfoList subDirs =
+ QDir(vc2017RedistDirName).entryInfoList(QDir::Dirs | QDir::NoDotAndDotDot, QDir::Name | QDir::Reversed);
+ for (const QFileInfo &f : subDirs) {
+ const QString path = f.absoluteFilePath();
+ if (QFileInfo(path + slash + vcDebugRedistDir()).isDir())
+ return path;
+ }
+ std::wcerr << "Warning: Cannot find Visual Studio redist directory under "
+ << QDir::toNativeSeparators(vc2017RedistDirName).toStdWString() << ".\n";
+ return QString();
+}
+
static QStringList compilerRunTimeLibs(Platform platform, bool isDebug, unsigned wordSize)
{
QStringList result;
@@ -1043,27 +1079,15 @@ static QStringList compilerRunTimeLibs(Platform platform, bool isDebug, unsigned
}
break;
case Windows: { // MSVC/Desktop: Add redistributable packages.
- const char vcDirVar[] = "VCINSTALLDIR";
- const QChar slash(QLatin1Char('/'));
- QString vcRedistDirName = QDir::cleanPath(QFile::decodeName(qgetenv(vcDirVar)));
- if (vcRedistDirName.isEmpty()) {
- std::wcerr << "Warning: Cannot find Visual Studio installation directory, " << vcDirVar << " is not set.\n";
+ QString vcRedistDirName = vcRedistDir();
+ if (vcRedistDirName.isEmpty())
break;
- }
- if (!vcRedistDirName.endsWith(slash))
- vcRedistDirName.append(slash);
- vcRedistDirName.append(QStringLiteral("redist"));
- QDir vcRedistDir(vcRedistDirName);
- if (!vcRedistDir.exists()) {
- std::wcerr << "Warning: Cannot find Visual Studio redist directory, "
- << QDir::toNativeSeparators(vcRedistDirName).toStdWString() << ".\n";
- break;
- }
QStringList redistFiles;
+ QDir vcRedistDir(vcRedistDirName);
const QString wordSizeString(QLatin1String(wordSize > 32 ? "x64" : "x86"));
if (isDebug) {
// Append DLLs from Debug_NonRedist\x??\Microsoft.VC<version>.DebugCRT.
- if (vcRedistDir.cd(QLatin1String("Debug_NonRedist")) && vcRedistDir.cd(wordSizeString)) {
+ if (vcRedistDir.cd(vcDebugRedistDir()) && vcRedistDir.cd(wordSizeString)) {
const QStringList names = vcRedistDir.entryList(QStringList(QStringLiteral("Microsoft.VC*.DebugCRT")), QDir::Dirs);
if (!names.isEmpty() && vcRedistDir.cd(names.first())) {
const QFileInfoList &dlls = vcRedistDir.entryInfoList(QStringList(QLatin1String("*.dll")));
@@ -1072,14 +1096,15 @@ static QStringList compilerRunTimeLibs(Platform platform, bool isDebug, unsigned
}
}
} else { // release: Bundle vcredist<>.exe
+ QString releaseRedistDir = vcRedistDirName;
const QStringList countryCodes = vcRedistDir.entryList(QStringList(QStringLiteral("[0-9]*")), QDir::Dirs);
- if (!countryCodes.isEmpty()) {
- const QFileInfo fi(vcRedistDirName + slash + countryCodes.first() + slash
- + QStringLiteral("vcredist_") + wordSizeString
- + QStringLiteral(".exe"));
- if (fi.isFile())
- redistFiles.append(fi.absoluteFilePath());
- }
+ if (!countryCodes.isEmpty()) // Pre MSVC2017
+ releaseRedistDir += QLatin1Char('/') + countryCodes.constFirst();
+ const QFileInfo fi(releaseRedistDir + QLatin1Char('/')
+ + QStringLiteral("vcredist_") + wordSizeString
+ + QStringLiteral(".exe"));
+ if (fi.isFile())
+ redistFiles.append(fi.absoluteFilePath());
}
if (redistFiles.isEmpty()) {
std::wcerr << "Warning: Cannot find Visual Studio " << (isDebug ? "debug" : "release")