Commit fb16802e authored by Liang Qi's avatar Liang Qi
Browse files

Merge remote-tracking branch 'origin/5.9' into 5.10

 Conflicts:
	src/qtattributionsscanner/main.cpp

Change-Id: Ic509d457547ec64122b17511563de5ea3e1b1b44
Showing with 26 additions and 5 deletions
...@@ -58,8 +58,9 @@ ...@@ -58,8 +58,9 @@
\section1 License Information \section1 License Information
Qt Core is available under commercial licenses from \l{The Qt Company}. Qt Help is available under commercial licenses from \l{The Qt Company}.
In addition, it is available under the In addition, it is available under free software licenses. Since Qt 5.4,
these free software licenses are
\l{GNU Lesser General Public License, version 3}, or \l{GNU Lesser General Public License, version 3}, or
the \l{GNU General Public License, version 2}. the \l{GNU General Public License, version 2}.
See \l{Qt Licensing} for further details. See \l{Qt Licensing} for further details.
......
...@@ -53,6 +53,7 @@ int main(int argc, char **argv) ...@@ -53,6 +53,7 @@ int main(int argc, char **argv)
qDebug() << " -codesign=<ident> : Run codesign with the given identity on all executables"; qDebug() << " -codesign=<ident> : Run codesign with the given identity on all executables";
qDebug() << " -appstore-compliant: Skip deployment of components that use private API"; qDebug() << " -appstore-compliant: Skip deployment of components that use private API";
qDebug() << " -libpath=<path> : Add the given path to the library search path"; qDebug() << " -libpath=<path> : Add the given path to the library search path";
qDebug() << " -fs=<filesystem> : Set the filesystem used for the .dmg disk image (defaults to HFS+)";
qDebug() << ""; qDebug() << "";
qDebug() << "macdeployqt takes an application bundle as input and makes it"; qDebug() << "macdeployqt takes an application bundle as input and makes it";
qDebug() << "self-contained by copying in the Qt frameworks and plugins that"; qDebug() << "self-contained by copying in the Qt frameworks and plugins that";
...@@ -83,6 +84,7 @@ int main(int argc, char **argv) ...@@ -83,6 +84,7 @@ int main(int argc, char **argv)
bool plugins = true; bool plugins = true;
bool dmg = false; bool dmg = false;
QByteArray filesystem("HFS+");
bool useDebugLibs = false; bool useDebugLibs = false;
extern bool runStripEnabled; extern bool runStripEnabled;
extern bool alwaysOwerwriteEnabled; extern bool alwaysOwerwriteEnabled;
...@@ -162,6 +164,13 @@ int main(int argc, char **argv) ...@@ -162,6 +164,13 @@ int main(int argc, char **argv)
LogDebug() << "Argument found:" << argument; LogDebug() << "Argument found:" << argument;
deployFramework = true; deployFramework = true;
} else if (argument.startsWith(QByteArray("-fs"))) {
LogDebug() << "Argument found:" << argument;
int index = argument.indexOf('=');
if (index == -1)
LogError() << "Missing filesystem type";
else
filesystem = argument.mid(index+1);
} else if (argument.startsWith("-")) { } else if (argument.startsWith("-")) {
LogError() << "Unknown argument" << argument << "\n"; LogError() << "Unknown argument" << argument << "\n";
return 1; return 1;
...@@ -207,7 +216,7 @@ int main(int argc, char **argv) ...@@ -207,7 +216,7 @@ int main(int argc, char **argv)
if (dmg) { if (dmg) {
LogNormal(); LogNormal();
createDiskImage(appBundlePath); createDiskImage(appBundlePath, filesystem);
} }
return 0; return 0;
......
...@@ -1495,7 +1495,7 @@ void codesign(const QString &identity, const QString &appBundlePath) { ...@@ -1495,7 +1495,7 @@ void codesign(const QString &identity, const QString &appBundlePath) {
codesignBundle(identity, appBundlePath, QList<QString>()); codesignBundle(identity, appBundlePath, QList<QString>());
} }
void createDiskImage(const QString &appBundlePath) void createDiskImage(const QString &appBundlePath, const QString &filesystemType)
{ {
QString appBaseName = appBundlePath; QString appBaseName = appBundlePath;
appBaseName.chop(4); // remove ".app" from end appBaseName.chop(4); // remove ".app" from end
...@@ -1513,16 +1513,22 @@ void createDiskImage(const QString &appBundlePath) ...@@ -1513,16 +1513,22 @@ void createDiskImage(const QString &appBundlePath)
LogNormal() << "Creating disk image (.dmg) for" << appBundlePath; LogNormal() << "Creating disk image (.dmg) for" << appBundlePath;
} }
LogNormal() << "Image will use" << filesystemType;
// More dmg options can be found in the hdiutil man page. // More dmg options can be found in the hdiutil man page.
QStringList options = QStringList() QStringList options = QStringList()
<< "create" << dmgName << "create" << dmgName
<< "-srcfolder" << appBundlePath << "-srcfolder" << appBundlePath
<< "-format" << "UDZO" << "-format" << "UDZO"
<< "-fs" << filesystemType
<< "-volname" << appBaseName; << "-volname" << appBaseName;
QProcess hdutil; QProcess hdutil;
hdutil.start("hdiutil", options); hdutil.start("hdiutil", options);
hdutil.waitForFinished(-1); hdutil.waitForFinished(-1);
if (hdutil.exitCode() != 0) {
LogError() << "Bundle creation error:" << hdutil.readAllStandardError();
}
} }
void fixupFramework(const QString &frameworkName) void fixupFramework(const QString &frameworkName)
......
...@@ -129,7 +129,7 @@ QSet<QString> codesignBundle(const QString &identity, ...@@ -129,7 +129,7 @@ QSet<QString> codesignBundle(const QString &identity,
const QString &appBundlePath, const QString &appBundlePath,
QList<QString> additionalBinariesContainingRpaths); QList<QString> additionalBinariesContainingRpaths);
void codesign(const QString &identity, const QString &appBundlePath); void codesign(const QString &identity, const QString &appBundlePath);
void createDiskImage(const QString &appBundlePath); void createDiskImage(const QString &appBundlePath, const QString &filesystemType);
void fixupFramework(const QString &appBundlePath); void fixupFramework(const QString &appBundlePath);
......
...@@ -2291,6 +2291,10 @@ QString Generator::typeString(const Node *node) ...@@ -2291,6 +2291,10 @@ QString Generator::typeString(const Node *node)
return "QML signal handler"; return "QML signal handler";
case Node::QmlMethod: case Node::QmlMethod:
return "QML method"; return "QML method";
case Node::Module:
return "module";
case Node::QmlModule:
return "QML module";
default: default:
return "documentation"; return "documentation";
} }
......
...@@ -138,6 +138,7 @@ int main(int argc, char *argv[]) ...@@ -138,6 +138,7 @@ int main(int argc, char *argv[])
} }
QString generator = parser.value(generatorOption); QString generator = parser.value(generatorOption);
out.setCodec("UTF-8");
if (generator == QLatin1String("qdoc")) { if (generator == QLatin1String("qdoc")) {
QString baseDirectory = parser.value(baseDirOption); QString baseDirectory = parser.value(baseDirOption);
if (baseDirectory.isEmpty()) { if (baseDirectory.isEmpty()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment