summaryrefslogtreecommitdiff
path: root/src/windeployqt/utils.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-10-25 16:35:17 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-26 19:27:01 +0100
commitc03c51424b25c1a508a6562dc4edb282577bc964 (patch)
tree8592cdf05f9255e68e069f23da8a104e974abad6 /src/windeployqt/utils.cpp
parent564a28dacd5e9c6705e2b79cae88a7f037e257cc (diff)
downloadqttools-c03c51424b25c1a508a6562dc4edb282577bc964.tar.gz
Use qmlimportscanner in windeployqt.
Run qmlimportscanner to find the QML modules and scan their plugins for additional dependencies. Change-Id: Ia35e71441c4b97be0561b42fee21e8e6e961d1e5 Reviewed-by: Andrew Knight <andrew.knight@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/windeployqt/utils.cpp')
-rw-r--r--src/windeployqt/utils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/windeployqt/utils.cpp b/src/windeployqt/utils.cpp
index 51deba980..36edf5e35 100644
--- a/src/windeployqt/utils.cpp
+++ b/src/windeployqt/utils.cpp
@@ -69,6 +69,11 @@ QT_BEGIN_NAMESPACE
int optVerboseLevel = 1;
+bool isBuildDirectory(Platform platform, const QString &dirName)
+{
+ return (platform & WindowsBased) && (dirName == QLatin1String("debug") || dirName == QLatin1String("release"));
+}
+
// Create a symbolic link by changing to the source directory to make sure the
// link uses relative paths only (QFile::link() otherwise uses the absolute path).
bool createSymbolicLink(const QFileInfo &source, const QString &target, QString *errorMessage)