refs #475 Tweaked resource file directory.

This commit is contained in:
Mathew Sutcliffe
2015-10-02 23:04:29 +01:00
parent a0a503599f
commit 9593020fc8
2 changed files with 7 additions and 6 deletions

View File

@@ -2,11 +2,13 @@ win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yis
else: COPY = cp -r
win32 {
QMAKE_PRE_LINK += $$COPY $$shell_path($$PWD/data) \
$$shell_path($$OUT_PWD/../../bin/resources)
QMAKE_PRE_LINK += $$COPY $$shell_path($$PWD/data) \
$$shell_path($$OUT_PWD/../../bin/resources) \
& $$COPY $$shell_path($$PWD/swiftDB) \
$$shell_path($$OUT_PWD/../../bin/resources/swiftDB)
}
else {
QMAKE_PRE_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) && \
$$COPY $$shell_path($$PWD/data) \
$$shell_path($$OUT_PWD/../../bin)
QMAKE_PRE_LINK += mkdir -p $$shell_path($$OUT_PWD/../../bin) \
&& $$COPY $$shell_path($$PWD/data) $$shell_path($$PWD/swiftDB) \
$$shell_path($$OUT_PWD/../../bin)
}

View File

@@ -233,7 +233,6 @@ namespace BlackMisc
QString CProject::getSwiftResourceDir()
{
QDir dir(getApplicationDir());
if (!dir.cdUp()) { return ""; }
if (dir.cd("resources")) { return dir.absolutePath(); }
return "";
}