summaryrefslogtreecommitdiff
path: root/projects.pro
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2012-07-13 17:33:30 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-13 19:29:57 +0200
commitfd4558ce23868ca03307152008277c13cf658792 (patch)
tree3e29c81398015dafa8ed4e1f593b7f7a57471184 /projects.pro
parentbaeb42184402454da3e337bbfa2f4d5c7346435f (diff)
downloadqt4-tools-fd4558ce23868ca03307152008277c13cf658792.tar.gz
Fix 'make install' when cross-compiling on Windows
When cross-compiling on a Unix-like environment in a Windows host we let the default mkspecs be copied to the target directory, instead of being symlinked. On Windows, there is an extra-line on the install_mkspecs Makefile target which also copies (rather than linking) the default mkspecs to $QT_INSTALL_DIR/mkspecs/default. So in the end this patch removes a duplicate which was not working, causing the install_mkspecs target to fail. Change-Id: I44be3a55c11cd7916b4b9ea6a0db1f8d97d28353 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'projects.pro')
-rw-r--r--projects.pro6
1 files changed, 5 insertions, 1 deletions
diff --git a/projects.pro b/projects.pro
index 0b498f867e..5f39a7b6a9 100644
--- a/projects.pro
+++ b/projects.pro
@@ -155,7 +155,11 @@ mkspecs.files -= $$QT_SOURCE_TREE/mkspecs/modules
unix {
DEFAULT_QMAKESPEC = $$QMAKESPEC
DEFAULT_QMAKESPEC ~= s,^.*mkspecs/,,g
- mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
+
+ # When cross-compiling on a Unix-like environment in a Windows host
+ # we let the default mkspecs be copied to the target directory, instead
+ # of being symlinked.
+ !contains(QMAKE_HOST.os, Windows): mkspecs.commands += $(DEL_FILE) $(INSTALL_ROOT)$$mkspecs.path/default; $(SYMLINK) $$DEFAULT_QMAKESPEC $(INSTALL_ROOT)$$mkspecs.path/default
mkspecs.files -= $$QT_SOURCE_TREE/mkspecs/default
}
win32:!equals(QT_BUILD_TREE, $$QT_SOURCE_TREE) {