From 92912ce0d01214dc1758935200ae7e64e4d2d7e0 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 17 Feb 2014 02:59:07 +0100 Subject: [PATCH] Fixed .pro file for blacksound , copying of sound files https://dev.vatsim-germany.org/issues/129#note-11 --- src/blacksound/blacksound.pro | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/blacksound/blacksound.pro b/src/blacksound/blacksound.pro index 80273a6d1..b061800a3 100644 --- a/src/blacksound/blacksound.pro +++ b/src/blacksound/blacksound.pro @@ -23,5 +23,9 @@ DESTDIR = ../../lib OTHER_FILES += ./sounds/*.wav sounds/readme.txt RESOURCES += -win32: QMAKE_POST_LINK = copy sounds/* $$OUT_PWD/../../bin/sounds -else: QMAKE_POST_LINK = cp sounds/* $$OUT_PWD/../../bin/sounds +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