nest bundle-related conditionals for clarity
Change-Id: I97f9d87cb5a114bf4764f13f0fd0d22e9b4da96f Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
This commit is contained in:
parent
e9c1e3076c
commit
4849037851
@ -702,18 +702,20 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
|||||||
<< "@$(QMAKE) -prl " << buildArgs() << " " << project->projectFile() << endl;
|
<< "@$(QMAKE) -prl " << buildArgs() << " " << project->projectFile() << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!project->first("QMAKE_PKGINFO").isEmpty()) {
|
if (!project->isEmpty("QMAKE_BUNDLE")) {
|
||||||
|
if (!project->first("QMAKE_PKGINFO").isEmpty()) {
|
||||||
ProString pkginfo = escapeFilePath(project->first("QMAKE_PKGINFO"));
|
ProString pkginfo = escapeFilePath(project->first("QMAKE_PKGINFO"));
|
||||||
QString destdir = project->first("DESTDIR") + project->first("QMAKE_BUNDLE") + "/Contents";
|
QString destdir = project->first("DESTDIR") + project->first("QMAKE_BUNDLE") + "/Contents";
|
||||||
t << pkginfo << ": \n\t";
|
t << pkginfo << ": \n\t";
|
||||||
if(!destdir.isEmpty())
|
if (!destdir.isEmpty())
|
||||||
t << mkdir_p_asstring(destdir) << "\n\t";
|
t << mkdir_p_asstring(destdir) << "\n\t";
|
||||||
t << "@$(DEL_FILE) " << pkginfo << "\n\t"
|
t << "@$(DEL_FILE) " << pkginfo << "\n\t"
|
||||||
<< "@echo \"APPL"
|
<< "@echo \"APPL"
|
||||||
<< (project->isEmpty("QMAKE_PKGINFO_TYPEINFO") ? QString::fromLatin1("????") : project->first("QMAKE_PKGINFO_TYPEINFO").left(4))
|
<< (project->isEmpty("QMAKE_PKGINFO_TYPEINFO")
|
||||||
|
? QString::fromLatin1("????") : project->first("QMAKE_PKGINFO_TYPEINFO").left(4))
|
||||||
<< "\" >" << pkginfo << endl;
|
<< "\" >" << pkginfo << endl;
|
||||||
}
|
}
|
||||||
if(!project->first("QMAKE_BUNDLE_RESOURCE_FILE").isEmpty()) {
|
if (!project->first("QMAKE_BUNDLE_RESOURCE_FILE").isEmpty()) {
|
||||||
ProString resources = escapeFilePath(project->first("QMAKE_BUNDLE_RESOURCE_FILE"));
|
ProString resources = escapeFilePath(project->first("QMAKE_BUNDLE_RESOURCE_FILE"));
|
||||||
bundledFiles << resources;
|
bundledFiles << resources;
|
||||||
QString destdir = project->first("DESTDIR") + project->first("QMAKE_BUNDLE") + "/Contents/Resources";
|
QString destdir = project->first("DESTDIR") + project->first("QMAKE_BUNDLE") + "/Contents/Resources";
|
||||||
@ -721,7 +723,6 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
|||||||
t << mkdir_p_asstring(destdir) << "\n\t";
|
t << mkdir_p_asstring(destdir) << "\n\t";
|
||||||
t << "@touch " << resources << "\n\t\n";
|
t << "@touch " << resources << "\n\t\n";
|
||||||
}
|
}
|
||||||
if(!project->isEmpty("QMAKE_BUNDLE")) {
|
|
||||||
//copy the plist
|
//copy the plist
|
||||||
QString info_plist = escapeFilePath(fileFixify(project->first("QMAKE_INFO_PLIST").toQString())),
|
QString info_plist = escapeFilePath(fileFixify(project->first("QMAKE_INFO_PLIST").toQString())),
|
||||||
info_plist_out = escapeFilePath(project->first("QMAKE_INFO_PLIST_OUT").toQString());
|
info_plist_out = escapeFilePath(project->first("QMAKE_INFO_PLIST_OUT").toQString());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user