Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <QString>
#include <QStringList>
#include <QDebug>
#include <QSet>
#include <QVersionNumber>
Go to the source code of this file.
Classes | |
class | FrameworkInfo |
class | DylibInfo |
class | OtoolInfo |
class | ApplicationBundleInfo |
class | DeploymentInfo |
Macros | |
#define | LogError() if (logLevel < 0) {} else qDebug() << "ERROR:" |
#define | LogWarning() if (logLevel < 1) {} else qDebug() << "WARNING:" |
#define | LogNormal() if (logLevel < 2) {} else qDebug() << "Log:" |
#define | LogDebug() if (logLevel < 3) {} else qDebug() << "Log:" |
Functions | |
bool | operator== (const FrameworkInfo &a, const FrameworkInfo &b) |
QDebug | operator<< (QDebug debug, const FrameworkInfo &info) |
QDebug | operator<< (QDebug debug, const ApplicationBundleInfo &info) |
OtoolInfo | findDependencyInfo (const QString &binaryPath) |
FrameworkInfo | parseOtoolLibraryLine (const QString &line, const QString &appBundlePath, const QList< QString > &rpaths, bool useDebugLibs) |
QString | findAppBinary (const QString &appBundlePath) |
QList< FrameworkInfo > | getQtFrameworks (const QString &path, const QString &appBundlePath, const QList< QString > &rpaths, bool useDebugLibs) |
QList< FrameworkInfo > | getQtFrameworks (const QStringList &otoolLines, const QString &appBundlePath, const QList< QString > &rpaths, bool useDebugLibs) |
QString | copyFramework (const FrameworkInfo &framework, const QString path) |
DeploymentInfo | deployQtFrameworks (const QString &appBundlePath, const QStringList &additionalExecutables, bool useDebugLibs) |
DeploymentInfo | deployQtFrameworks (QList< FrameworkInfo > frameworks, const QString &bundlePath, const QStringList &binaryPaths, bool useDebugLibs, bool useLoaderPath) |
void | createQtConf (const QString &appBundlePath) |
void | deployPlugins (const QString &appBundlePath, DeploymentInfo deploymentInfo, bool useDebugLibs) |
bool | deployQmlImports (const QString &appBundlePath, DeploymentInfo deploymentInfo, QStringList &qmlDirs, QStringList &qmlImportPaths) |
void | changeIdentification (const QString &id, const QString &binaryPath) |
void | changeInstallName (const QString &oldName, const QString &newName, const QString &binaryPath) |
void | runStrip (const QString &binaryPath) |
void | stripAppBinary (const QString &bundlePath) |
QStringList | findAppFrameworkNames (const QString &appBundlePath) |
QStringList | findAppFrameworkPaths (const QString &appBundlePath) |
void | codesignFile (const QString &identity, const QString &filePath) |
QSet< QString > | codesignBundle (const QString &identity, const QString &appBundlePath, QList< QString > additionalBinariesContainingRpaths) |
void | codesign (const QString &identity, const QString &appBundlePath) |
void | createDiskImage (const QString &appBundlePath, const QString &filesystemType) |
void | fixupFramework (const QString &appBundlePath) |
Variables | |
int | logLevel |
bool | runStripEnabled |
Definition at line 16 of file shared.h.
Referenced by changeIdentification(), changeInstallName(), codesignBundle(), codesignFile(), deployRPaths(), findDependencyInfo(), getBinaryDependencies(), getQtFrameworks(), main(), and runStrip().
Definition at line 13 of file shared.h.
Referenced by codesignBundle(), codesignFile(), copyDylib(), copyFilePrintStatus(), copyFramework(), createDiskImage(), deployQmlImports(), deployQtFrameworks(), findAppBinary(), findDependencyInfo(), fixupFramework(), getBinaryDependencies(), getBinaryRPaths(), linkFilePrintStatus(), main(), parseOtoolLibraryLine(), resolveDyldPrefix(), runInstallNameTool(), and runStrip().
Definition at line 15 of file shared.h.
Referenced by codesignBundle(), codesignFile(), copyFilePrintStatus(), createDiskImage(), createQtConf(), deployPlugins(), deployQmlImports(), deployQtFrameworks(), linkFilePrintStatus(), main(), recursiveCopy(), and recursiveCopyAndDeploy().
Definition at line 14 of file shared.h.
Referenced by createQtConf(), deployPlugins(), deployQmlImports(), and deployQtFrameworks().
Definition at line 828 of file shared.cpp.
References LogDebug, and runInstallNameTool().
Referenced by deployQtFrameworks(), and fixupFramework().
void changeInstallName | ( | const QString & | oldName, |
const QString & | newName, | ||
const QString & | binaryPath ) |
Definition at line 911 of file shared.cpp.
References LogDebug, and runInstallNameTool().
Definition at line 1546 of file shared.cpp.
References codesignBundle().
Referenced by codesignBundle(), codesignFile(), and main().
QSet< QString > codesignBundle | ( | const QString & | identity, |
const QString & | appBundlePath, | ||
QList< QString > | additionalBinariesContainingRpaths ) |
Definition at line 1411 of file shared.cpp.
References QFileInfo::absoluteFilePath(), QString::append(), codesign(), codesignBundle(), codesignFile(), QDir::Dirs, QDir::entryList(), extraEntitlements, QDir::Files, findAppBundleFiles(), findAppFrameworkPaths(), findEntitlementsFile(), QString::fromLatin1(), getBinaryDependencies(), QString::insert(), QByteArray::isEmpty(), LogDebug, LogError, LogNormal, QDir::NoSymLinks, and QDirIterator::Subdirectories.
Referenced by codesign(), and codesignBundle().
Definition at line 1375 of file shared.cpp.
References codesign(), extraEntitlements, hardenedRuntime, QByteArray::isEmpty(), QString::isEmpty(), LogDebug, LogError, LogNormal, runCodesign, and secureTimestamp.
Referenced by codesignBundle().
QString copyFramework | ( | const FrameworkInfo & | framework, |
const QString | path ) |
Definition at line 749 of file shared.cpp.
References alwaysOwerwriteEnabled, copyFilePrintStatus(), QFile::exists(), linkFilePrintStatus(), LogError, patch_debugInInfoPlist(), and recursiveCopy().
Referenced by deployQtFrameworks().
Definition at line 1550 of file shared.cpp.
References alwaysOwerwriteEnabled, QString::chop(), LogError, and LogNormal.
Referenced by main().
Definition at line 1204 of file shared.cpp.
References alwaysOwerwriteEnabled, contents, fileName, LogNormal, LogWarning, QDir::mkpath(), and QIODeviceBase::WriteOnly.
Referenced by main().
void deployPlugins | ( | const QString & | appBundlePath, |
DeploymentInfo | deploymentInfo, | ||
bool | useDebugLibs ) |
Definition at line 1235 of file shared.cpp.
References deployPlugins(), findAppBinary(), and ApplicationBundleInfo::path.
bool deployQmlImports | ( | const QString & | appBundlePath, |
DeploymentInfo | deploymentInfo, | ||
QStringList & | qmlDirs, | ||
QStringList & | qmlImportPaths ) |
Definition at line 1267 of file shared.cpp.
References QString::append(), QCoreApplication::applicationDirPath(), QJsonDocument::array(), QDir::cleanPath(), deployQmlImport(), QFile::exists(), QJsonDocument::fromJson(), importLessThan(), QJsonDocument::isArray(), QByteArray::isEmpty(), QLibraryInfo::LibraryExecutablesPath, LogError, LogNormal, LogWarning, QString::mid(), QLibraryInfo::path(), QLibraryInfo::QmlImportsPath, QStringLiteral, QString::startsWith(), and QJsonArray::toVariantList().
Referenced by main().
DeploymentInfo deployQtFrameworks | ( | const QString & | appBundlePath, |
const QStringList & | additionalExecutables, | ||
bool | useDebugLibs ) |
Definition at line 1037 of file shared.cpp.
References alwaysOwerwriteEnabled, deployQtFrameworks(), findAppBinary(), findAppLibraries(), getBinaryRPaths(), getQtFrameworksForPaths(), QLibraryInfo::LibrariesPath, LogWarning, QLibraryInfo::path(), and ApplicationBundleInfo::path.
DeploymentInfo deployQtFrameworks | ( | QList< FrameworkInfo > | frameworks, |
const QString & | bundlePath, | ||
const QStringList & | binaryPaths, | ||
bool | useDebugLibs, | ||
bool | useLoaderPath ) |
Definition at line 961 of file shared.cpp.
References changeIdentification(), changeInstallName(), copyDylib(), copyFramework(), deployRPaths(), getQtFrameworks(), LogError, LogNormal, QLibraryInfo::path(), QLibraryInfo::PrefixPath, runStrip(), and DeploymentInfo::useLoaderPath.
Referenced by deployPlugins(), deployQtFrameworks(), main(), and recursiveCopyAndDeploy().
Definition at line 367 of file shared.cpp.
References QFile::exists(), and LogError.
Referenced by deployPlugins(), deployQtFrameworks(), and stripAppBinary().
QStringList findAppFrameworkNames | ( | const QString & | appBundlePath | ) |
Definition at line 403 of file shared.cpp.
References QDir::Dirs, QString::fromLatin1(), iter, and QDir::NoSymLinks.
Referenced by main().
QStringList findAppFrameworkPaths | ( | const QString & | appBundlePath | ) |
Definition at line 420 of file shared.cpp.
References QDir::Dirs, QString::fromLatin1(), iter, and QDir::NoSymLinks.
Referenced by codesignBundle().
Definition at line 146 of file shared.cpp.
References DylibInfo::binaryPath, QString::contains(), QString::endsWith(), fileName, QVersionNumber::fromString(), info, LogDebug, LogError, match(), output, QStringLiteral, and Qt::SkipEmptyParts.
Referenced by getBinaryDependencies(), getQtFrameworks(), and parseOtoolLibraryLine().
Definition at line 1586 of file shared.cpp.
References addRPath(), changeIdentification(), linkFilePrintStatus(), LogError, QStringLiteral, and QString::split().
Referenced by main().
QList< FrameworkInfo > getQtFrameworks | ( | const QString & | path, |
const QString & | appBundlePath, | ||
const QList< QString > & | rpaths, | ||
bool | useDebugLibs ) |
Definition at line 560 of file shared.cpp.
References findDependencyInfo(), getBinaryRPaths(), getQtFrameworks(), and info.
QList< FrameworkInfo > getQtFrameworks | ( | const QStringList & | otoolLines, |
const QString & | appBundlePath, | ||
const QList< QString > & | rpaths, | ||
bool | useDebugLibs ) |
|
inline |
Definition at line 69 of file shared.cpp.
QDebug operator<< | ( | QDebug | debug, |
const FrameworkInfo & | info ) |
Definition at line 49 of file shared.cpp.
bool operator== | ( | const FrameworkInfo & | a, |
const FrameworkInfo & | b ) |
Definition at line 44 of file shared.cpp.
FrameworkInfo parseOtoolLibraryLine | ( | const QString & | line, |
const QString & | appBundlePath, | ||
const QList< QString > & | rpaths, | ||
bool | useDebugLibs ) |
Definition at line 210 of file shared.cpp.
References bundleFrameworkDirectory, QString::chop(), QDir::cleanPath(), QDir::currentPath(), End, QFile::exists(), findDependencyInfo(), info, OtoolInfo::installName, QDir::isAbsolutePath(), QString::length(), librarySearchPath, line, LogError, QString::mid(), parseOtoolLibraryLine(), QStringLiteral, QString::simplified(), state, QString::trimmed(), and Version.
Referenced by getQtFrameworks(), and parseOtoolLibraryLine().
Definition at line 920 of file shared.cpp.
References LogDebug, LogError, and runStripEnabled.
Referenced by deployPlugins(), deployQtFrameworks(), recursiveCopyAndDeploy(), and stripAppBinary().
Definition at line 936 of file shared.cpp.
References findAppBinary(), and runStrip().
Referenced by main().
|
extern |
Definition at line 37 of file shared.cpp.
Referenced by main(), and QXcbKeyboard::updateKeymap().
|
extern |
Definition at line 28 of file shared.cpp.
Referenced by main(), and runStrip().