Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
shared.h File Reference

(920bcc09466513375745d6e2250610d62fb98ff1)

#include <QString>
#include <QStringList>
#include <QDebug>
#include <QSet>
#include <QVersionNumber>
Include dependency graph for shared.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FrameworkInfo
class  DylibInfo
class  OtoolInfo
class  ApplicationBundleInfo
class  DeploymentInfo

Macros

#define LogError()
#define LogWarning()
#define LogNormal()
#define LogDebug()

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< FrameworkInfogetQtFrameworks (const QString &path, const QString &appBundlePath, const QList< QString > &rpaths, bool useDebugLibs)
QList< FrameworkInfogetQtFrameworks (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< QStringcodesignBundle (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 = 1
bool runStripEnabled = true

Macro Definition Documentation

◆ LogDebug

#define LogDebug ( )
Value:
if (logLevel < 3) {} else qDebug() << "Log:"
#define qDebug
Definition qlogging.h:168
int logLevel
Definition shared.cpp:38

Definition at line 16 of file shared.h.

◆ LogError

#define LogError ( )
Value:
if (logLevel < 0) {} else qDebug() << "ERROR:"

Definition at line 13 of file shared.h.

◆ LogNormal

#define LogNormal ( )
Value:
if (logLevel < 2) {} else qDebug() << "Log:"

Definition at line 15 of file shared.h.

◆ LogWarning

#define LogWarning ( )
Value:
if (logLevel < 1) {} else qDebug() << "WARNING:"

Definition at line 14 of file shared.h.

Function Documentation

◆ changeIdentification()

void changeIdentification ( const QString & id,
const QString & binaryPath )

Definition at line 844 of file shared.cpp.

◆ changeInstallName()

void changeInstallName ( const QString & oldName,
const QString & newName,
const QString & binaryPath )

Definition at line 927 of file shared.cpp.

◆ codesign()

void codesign ( const QString & identity,
const QString & appBundlePath )

Definition at line 1563 of file shared.cpp.

◆ codesignBundle()

QSet< QString > codesignBundle ( const QString & identity,
const QString & appBundlePath,
QList< QString > additionalBinariesContainingRpaths )

Definition at line 1428 of file shared.cpp.

◆ codesignFile()

void codesignFile ( const QString & identity,
const QString & filePath )

Definition at line 1392 of file shared.cpp.

References hardenedRuntime, runCodesign, and secureTimestamp.

◆ copyFramework()

QString copyFramework ( const FrameworkInfo & framework,
const QString path )

Definition at line 765 of file shared.cpp.

References alwaysOwerwriteEnabled.

◆ createDiskImage()

void createDiskImage ( const QString & appBundlePath,
const QString & filesystemType )

Definition at line 1567 of file shared.cpp.

References alwaysOwerwriteEnabled.

◆ createQtConf()

void createQtConf ( const QString & appBundlePath)

Definition at line 1222 of file shared.cpp.

◆ deployPlugins()

void deployPlugins ( const QString & appBundlePath,
DeploymentInfo deploymentInfo,
bool useDebugLibs )

Definition at line 1252 of file shared.cpp.

◆ deployQmlImports()

bool deployQmlImports ( const QString & appBundlePath,
DeploymentInfo deploymentInfo,
QStringList & qmlDirs,
QStringList & qmlImportPaths )

Definition at line 1284 of file shared.cpp.

◆ deployQtFrameworks() [1/2]

DeploymentInfo deployQtFrameworks ( const QString & appBundlePath,
const QStringList & additionalExecutables,
bool useDebugLibs )

Definition at line 1053 of file shared.cpp.

References alwaysOwerwriteEnabled.

◆ deployQtFrameworks() [2/2]

DeploymentInfo deployQtFrameworks ( QList< FrameworkInfo > frameworks,
const QString & bundlePath,
const QStringList & binaryPaths,
bool useDebugLibs,
bool useLoaderPath )

Definition at line 977 of file shared.cpp.

References DeploymentInfo::isDebug, FrameworkInfo::isDebugLibrary(), DeploymentInfo::isFramework, and DeploymentInfo::useLoaderPath.

Here is the call graph for this function:

◆ findAppBinary()

QString findAppBinary ( const QString & appBundlePath)

Definition at line 377 of file shared.cpp.

◆ findAppFrameworkNames()

QStringList findAppFrameworkNames ( const QString & appBundlePath)

Definition at line 413 of file shared.cpp.

◆ findAppFrameworkPaths()

QStringList findAppFrameworkPaths ( const QString & appBundlePath)

Definition at line 430 of file shared.cpp.

◆ findDependencyInfo()

OtoolInfo findDependencyInfo ( const QString & binaryPath)

Definition at line 156 of file shared.cpp.

◆ fixupFramework()

void fixupFramework ( const QString & appBundlePath)

Definition at line 1603 of file shared.cpp.

◆ getQtFrameworks() [1/2]

QList< FrameworkInfo > getQtFrameworks ( const QString & path,
const QString & appBundlePath,
const QList< QString > & rpaths,
bool useDebugLibs )

Definition at line 570 of file shared.cpp.

◆ getQtFrameworks() [2/2]

QList< FrameworkInfo > getQtFrameworks ( const QStringList & otoolLines,
const QString & appBundlePath,
const QList< QString > & rpaths,
bool useDebugLibs )

◆ operator<<() [1/2]

QDebug operator<< ( QDebug debug,
const ApplicationBundleInfo & info )
inline

Definition at line 70 of file shared.cpp.

◆ operator<<() [2/2]

QDebug operator<< ( QDebug debug,
const FrameworkInfo & info )

Definition at line 50 of file shared.cpp.

◆ operator==()

bool operator== ( const FrameworkInfo & a,
const FrameworkInfo & b )

Definition at line 45 of file shared.cpp.

◆ parseOtoolLibraryLine()

FrameworkInfo parseOtoolLibraryLine ( const QString & line,
const QString & appBundlePath,
const QList< QString > & rpaths,
bool useDebugLibs )

Definition at line 220 of file shared.cpp.

References FrameworkInfo::isDylib.

◆ runStrip()

void runStrip ( const QString & binaryPath)

Definition at line 936 of file shared.cpp.

References runStripEnabled.

◆ stripAppBinary()

void stripAppBinary ( const QString & bundlePath)

Definition at line 952 of file shared.cpp.

Variable Documentation

◆ logLevel

int logLevel = 1
extern

Definition at line 38 of file shared.cpp.

Referenced by main().

◆ runStripEnabled

bool runStripEnabled = true
extern

Definition at line 29 of file shared.cpp.

Referenced by main(), and runStrip().