summaryrefslogtreecommitdiff
path: root/src/windeployqt/utils.cpp
diff options
context:
space:
mode:
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)