mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refs #482 Rationalized the copying of files from source tree to build tree.
This commit is contained in:
@@ -57,21 +57,4 @@ DLLDESTDIR = $$DestRoot/bin
|
||||
|
||||
OTHER_FILES += $$TRANSLATIONS readme.txt
|
||||
|
||||
win32:isEmpty(MINGW_IN_SHELL): COPY = xcopy /yis
|
||||
else: COPY = cp -r
|
||||
|
||||
win32 {
|
||||
QMAKE_PRE_LINK += $$COPY $$shell_path($$SourceRoot/resources/data) \
|
||||
$$shell_path($$DestRoot/resources) \
|
||||
& $$COPY $$shell_path($$SourceRoot/resources/swiftDB) \
|
||||
$$shell_path($$DestRoot/resources/swiftDB)
|
||||
}
|
||||
else {
|
||||
QMAKE_PRE_LINK += mkdir -p $$shell_path($$DestRoot/resources) \
|
||||
&& $$COPY $$shell_path($$SourceRoot/resources/data) \
|
||||
$$shell_path($$DestRoot/resources) \
|
||||
&& $$COPY $$shell_path($$SourceRoot/resources/swiftDB) \
|
||||
$$shell_path($$DestRoot/resources/swiftDB)
|
||||
}
|
||||
|
||||
load(common_post)
|
||||
|
||||
@@ -233,7 +233,7 @@ namespace BlackMisc
|
||||
QString CProject::getSwiftResourceDir()
|
||||
{
|
||||
QDir dir(getApplicationDir());
|
||||
if (dir.cd("resources")) { return dir.absolutePath(); }
|
||||
if (dir.cdUp()) { return dir.absolutePath(); }
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user