![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QStringList>
#include <QMap>
#include <QtCore/QFile>
#include <QtCore/QDir>
#include <QtCore/QDateTime>
#include <QtCore/QJsonArray>
#include <QtCore/QJsonObject>
#include <QtCore/QJsonDocument>
#include <iostream>
Go to the source code of this file.
Classes | |
class | JsonOutput |
class | NameFilterFileEntryFunction |
Enumerations | |
enum | PlatformFlag { WindowsBased = 0x00001 , IntelBased = 0x00010 , ArmBased = 0x00020 , Msvc = 0x00100 , MinGW = 0x00200 , ClangMsvc = 0x00400 , ClangMinGW = 0x00800 , WindowsDesktopMsvc = WindowsBased + Msvc , WindowsDesktopMsvcIntel = WindowsDesktopMsvc + IntelBased , WindowsDesktopMsvcArm = WindowsDesktopMsvc + ArmBased , WindowsDesktopMinGW = WindowsBased + IntelBased + MinGW , WindowsDesktopClangMsvc = WindowsBased + IntelBased + ClangMsvc , WindowsDesktopClangMinGW = WindowsBased + IntelBased + ClangMinGW , UnknownPlatform } |
enum | ListOption { ListNone = 0 , ListSource , ListTarget , ListRelative , ListMapping } |
enum | DebugMatchMode { MatchDebug , MatchRelease , MatchDebugOrRelease } |
enum | UpdateFileFlag { ForceUpdateFile = 0x1 , SkipUpdateFile = 0x2 , RemoveEmptyQmlDirectories = 0x4 , SkipQmlDesignerSpecificsDirectories = 0x8 } |
Functions | |
bool | platformHasDebugSuffix (Platform p) |
std::wostream & | operator<< (std::wostream &str, const QString &s) |
QString | normalizeFileName (const QString &name) |
QString | sharedLibrarySuffix () |
bool | isBuildDirectory (Platform platform, const QString &dirName) |
bool | createSymbolicLink (const QFileInfo &source, const QString &target, QString *errorMessage) |
bool | createDirectory (const QString &directory, QString *errorMessage, bool dryRun) |
QString | findInPath (const QString &file) |
QMap< QString, QString > | queryQtPaths (const QString &qmakeBinary, QString *errorMessage) |
QStringList | findSharedLibraries (const QDir &directory, Platform platform, DebugMatchMode debugMatchMode, const QString &prefix=QString()) |
bool | updateFile (const QString &sourceFileName, const QStringList &nameFilters, const QString &targetDirectory, unsigned flags, JsonOutput *json, QString *errorMessage) |
bool | runProcess (const QString &binary, const QStringList &args, const QString &workingDirectory=QString(), unsigned long *exitCode=0, QByteArray *stdOut=0, QByteArray *stdErr=0, QString *errorMessage=0) |
bool | readPeExecutable (const QString &peExecutableFileName, QString *errorMessage, QStringList *dependentLibraries=0, unsigned *wordSize=0, bool *isDebug=0, bool isMinGW=false, unsigned short *machineArch=nullptr) |
QStringList | findDependentLibraries (const QString &executableFileName, QString *errorMessage) |
QString | findD3dCompiler (Platform platform, const QString &qtBinDir, unsigned wordSize) |
QStringList | findDxc (Platform platform, const QString &qtBinDir, unsigned wordSize) |
bool | patchQtCore (const QString &path, QString *errorMessage) |
template<class DirectoryFileEntryFunction> | |
bool | updateFile (const QString &sourceFileName, DirectoryFileEntryFunction directoryFileEntryFunction, const QString &targetDirectory, unsigned flags, JsonOutput *json, QString *errorMessage) |
bool | updateFile (const QString &sourceFileName, const QString &targetDirectory, unsigned flags, JsonOutput *json, QString *errorMessage) |
Variables | |
static const char | windowsSharedLibrarySuffix [] = ".dll" |
const char * | qmakeInfixKey = "QT_INFIX" |
int | optVerboseLevel = 1 |
enum DebugMatchMode |
enum ListOption |
enum PlatformFlag |
enum UpdateFileFlag |
|
inline |
QStringList findDxc | ( | Platform | platform, |
const QString & | qtBinDir, | ||
unsigned | wordSize ) |
QStringList findSharedLibraries | ( | const QDir & | directory, |
Platform | platform, | ||
DebugMatchMode | debugMatchMode, | ||
const QString & | prefix = QString() ) |
Definition at line 80 of file utils.cpp.
References MatchDebug.
|
inline |
Definition at line 720 of file utils.cpp.
References optVerboseLevel.
Definition at line 194 of file utils.cpp.
References qmakeInfixKey.
bool readPeExecutable | ( | const QString & | peExecutableFileName, |
QString * | errorMessage, | ||
QStringList * | dependentLibraries = 0, | ||
unsigned * | wordSize = 0, | ||
bool * | isDebug = 0, | ||
bool | isMinGW = false, | ||
unsigned short * | machineArch = nullptr ) |
bool runProcess | ( | const QString & | binary, |
const QStringList & | args, | ||
const QString & | workingDirectory = QString(), | ||
unsigned long * | exitCode = 0, | ||
QByteArray * | stdOut = 0, | ||
QByteArray * | stdErr = 0, | ||
QString * | errorMessage = 0 ) |
Definition at line 137 of file utils.cpp.
References optVerboseLevel.
|
inline |
Definition at line 141 of file utils.h.
References windowsSharedLibrarySuffix.
|
inline |
bool updateFile | ( | const QString & | sourceFileName, |
const QStringList & | nameFilters, | ||
const QString & | targetDirectory, | ||
unsigned | flags, | ||
JsonOutput * | json, | ||
QString * | errorMessage ) |
Definition at line 249 of file utils.cpp.
References ForceUpdateFile, optVerboseLevel, and SkipUpdateFile.
bool updateFile | ( | const QString & | sourceFileName, |
DirectoryFileEntryFunction | directoryFileEntryFunction, | ||
const QString & | targetDirectory, | ||
unsigned | flags, | ||
JsonOutput * | json, | ||
QString * | errorMessage ) |
Definition at line 206 of file utils.h.
References ForceUpdateFile, optVerboseLevel, RemoveEmptyQmlDirectories, SkipQmlDesignerSpecificsDirectories, and SkipUpdateFile.
|
extern |
Definition at line 27 of file utils.cpp.
Referenced by deploy(), deployPlugin(), deployWebEngineCore(), findQtPlugins(), main(), parseArguments(), parseEarlyArguments(), patchQtCore(), runProcess(), updateFile(), and updateFile().
|
extern |
Definition at line 192 of file utils.cpp.
Referenced by deploy(), PluginInformation::generateAvailablePlugins(), and queryQtPaths().
|
static |
Definition at line 139 of file utils.h.
Referenced by deploy(), and sharedLibrarySuffix().