From dd4e2c58f3898443f498484f95c1d6a66a503113 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Sat, 15 Feb 2014 21:13:51 +0000 Subject: [PATCH] blacksound.pro: adjusted cross-platform copying of sound files refs #129 --- src/blacksound/blacksound.pro | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/blacksound/blacksound.pro b/src/blacksound/blacksound.pro index b061800a3..4d82e43f7 100644 --- a/src/blacksound/blacksound.pro +++ b/src/blacksound/blacksound.pro @@ -23,9 +23,8 @@ DESTDIR = ../../lib OTHER_FILES += ./sounds/*.wav sounds/readme.txt RESOURCES += -win32 { -# I have to replace / with \ , without xcopy the directory is not created - PWD_OUT_WIN = \"$$shell_path($$OUT_PWD/../../bin/sounds/)\" - PWD_WIN = \"$$shell_path($$PWD/sounds/*.*)\" - QMAKE_POST_LINK = xcopy $$PWD_WIN $$PWD_OUT_WIN /y -} else: QMAKE_POST_LINK = cp sounds/* $$OUT_PWD/../../bin/sounds +win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yi +else: COPY = cp -r + +QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \ + $$shell_path($$OUT_PWD/../../bin/sounds)