summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/shell-win32.conf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2013-02-28 12:40:16 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-03-15 18:01:57 +0100
commit457afb3749f4f1d7db86c89cbf251e18fbd0dfbf (patch)
treeee5df09e82ebbd9e54a47ee662dbdccb854c987a /mkspecs/common/shell-win32.conf
parent40236c35a62e0838cf150a6e0876e7d4f88e5a35 (diff)
fix parallelized "jom install"
unlike unix' mkdir -p, windows' md complains if the directory already exists. the workaround is a quite complex command, so the so far used concept for assembling the command line from pieces was replaced with a single template. for symmetry, adapt the makefile existence check to the new concept as well. QMAKE_CHK_EXISTS and QMAKE_MKDIR_CMD were added, with hard-coded fallbacks (ugly). QMAKE_CHK_FILE_EXISTS and QMAKE_CHK_EXISTS_GLUE (introduced in 5.0.0) are simply deleted again. QMAKE_CHK_DIR_EXISTS and QMAKE_MKDIR remain for legacy reasons, as qmake emits them into the Makefiles, and custom commands may rely on their presence. Task-number: QTBUG-28132 Change-Id: I3d049cb5d26947e5c3d102d0c2da33afb2a95140 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Janne Anttila <janne.anttila@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'mkspecs/common/shell-win32.conf')
-rw-r--r--mkspecs/common/shell-win32.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/mkspecs/common/shell-win32.conf b/mkspecs/common/shell-win32.conf
index 826e87e34f..77c9698388 100644
--- a/mkspecs/common/shell-win32.conf
+++ b/mkspecs/common/shell-win32.conf
@@ -5,10 +5,10 @@ QMAKE_COPY_DIR = xcopy /s /q /y /i
QMAKE_MOVE = move
QMAKE_DEL_FILE = del
QMAKE_DEL_DIR = rmdir
-QMAKE_CHK_DIR_EXISTS = if not exist
-QMAKE_CHK_FILE_EXISTS = if not exist
-QMAKE_CHK_EXISTS_GLUE =
-QMAKE_MKDIR = mkdir
+QMAKE_CHK_EXISTS = if not exist %1
+QMAKE_CHK_DIR_EXISTS = if not exist # legacy
+QMAKE_MKDIR = mkdir # legacy
+QMAKE_MKDIR_CMD = if not exist %1 mkdir %1 & if not exist %1 exit 1
# xcopy copies the contained files if source is a directory. Deal with it.
CONFIG += copy_dir_files