mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 09:15:34 +08:00
Fix copy command for unix platforms when parent folder does not exist
This commit is contained in:
@@ -30,7 +30,14 @@ RESOURCES +=
|
||||
win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yi
|
||||
else: COPY = cp -r
|
||||
|
||||
QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \
|
||||
win32 {
|
||||
QMAKE_POST_LINK += $$COPY $$shell_path($$PWD/sounds) \
|
||||
$$shell_path($$OUT_PWD/../../bin/sounds)
|
||||
}
|
||||
else {
|
||||
QMAKE_POST_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) && \
|
||||
$$COPY $$shell_path($$PWD/sounds) \
|
||||
$$shell_path($$OUT_PWD/../../bin)
|
||||
}
|
||||
|
||||
include (../../libraries.pri)
|
||||
|
||||
Reference in New Issue
Block a user