diff options
author | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-03-27 20:57:48 -0500 |
---|---|---|
committer | Simo Fält <simo.falt@nokia.com> | 2012-03-30 14:53:43 +0300 |
commit | 4b2cffa47a66add6e10f4408bb8a9cea33f781e9 (patch) | |
tree | 5e35b4d8f87c37440d2d70d72a748e9917b18aec | |
parent | b98b2f0b1f208f0a91e05f894dc87586111a6904 (diff) |
-rw-r--r-- | pkg.pri | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -55,15 +55,15 @@ package { # create extra qmake compiler to copy files across during build step copyqmlinfra.input = QML_INFRA_FILES copyqmlinfra.output = $$target_dir/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT} - win32: isEmpty(QMAKE_SH) { + !win32|if(win32-g++:!isEmpty(QMAKE_SH)) { + # in mac, linux, and windows-with-mingw $$QMAKE_MKDIR has -p so this will always work + copyqmlinfra.commands = $$QMAKE_MKDIR $$target_dir && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} + } else { # If we are in windows, and not a mingw shell, then the mkdir binary does not handle # the -p switch, and will fail if the directory already exists, so make it subject to # an "exists" test. The parens are necessary otherwise the copy won't occur when the # test fails, since $$QMAKE_CHK_DIR_EXISTS is "IF NOT EXISTS" copyqmlinfra.commands = ($$QMAKE_CHK_DIR_EXISTS $$target_dir $$QMAKE_MKDIR $$target_dir) && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} - } else { - # in mac, linux, and windows-with-mingw $$QMAKE_MKDIR has -p so this will always work - copyqmlinfra.commands = $$QMAKE_MKDIR $$target_dir && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} } copyqmlinfra.CONFIG += no_link_no_clean copyqmlinfra.variable_out = POST_TARGETDEPS @@ -82,15 +82,15 @@ package { target_dir ~= s,/,$$QMAKE_DIR_SEP, copyqmlmeshes.input = QML_MESHES_FILES copyqmlmeshes.output = $$target_dir/${QMAKE_FILE_IN_BASE}${QMAKE_FILE_EXT} - win32: isEmpty(QMAKE_SH) { + !win32|if(win32-g++:!isEmpty(QMAKE_SH)) { + # in mac, linux, and windows-with-mingw $$QMAKE_MKDIR has -p so this will always work + copyqmlmeshes.commands = $$QMAKE_MKDIR $$target_dir && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} + } else { # If we are in windows, and not a mingw shell, then the mkdir binary does not handle # the -p switch, and will fail if the directory already exists, so make it subject to # an "exists" test. The parens are necessary otherwise the copy won't occur when the # test fails, since $$QMAKE_CHK_DIR_EXISTS is "IF NOT EXISTS" copyqmlmeshes.commands = ($$QMAKE_CHK_DIR_EXISTS $$target_dir $$QMAKE_MKDIR $$target_dir) && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} - } else { - # in mac, linux, and windows-with-mingw $$QMAKE_MKDIR has -p so this will always work - copyqmlmeshes.commands = $$QMAKE_MKDIR $$target_dir && $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT} } copyqmlmeshes.CONFIG += no_link_no_clean copyqmlmeshes.variable_out = POST_TARGETDEPS |