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
main.cpp File Reference

(6bf89fcc1b3bd3924f88d9b28a5b15762c00a662)

#include <profileevaluator.h>
#include <profileutils.h>
#include <qmakeparser.h>
#include <qmakevfs.h>
#include <qrcreader.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QDebug>
#include <QtCore/QDir>
#include <QtCore/QDirIterator>
#include <QtCore/QFile>
#include <QtCore/QFileInfo>
#include <QtCore/QLibraryInfo>
#include <QtCore/QRegularExpression>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QJsonArray>
#include <QtCore/QJsonDocument>
#include <QtCore/QJsonObject>
#include <iostream>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  EvalHandler
 

Functions

static void printOut (const QString &out)
 
static void printErr (const QString &out)
 
static QJsonValue toJsonValue (const QJsonValue &v)
 
static QJsonValue toJsonValue (const QString &s)
 
static QJsonValue toJsonValue (const QStringList &lst)
 
template<class T >
void setValue (QJsonObject &obj, const char *key, T value)
 
static void printUsage ()
 
static void print (const QString &fileName, int lineNo, const QString &msg)
 
static QStringList getResources (const QString &resourceFile, QMakeVfs *vfs)
 
static QStringList getSources (const char *var, const char *vvar, const QStringList &baseVPaths, const QString &projectDir, const ProFileEvaluator &visitor)
 
static QStringList getSources (const ProFileEvaluator &visitor, const QString &projectDir, QMakeVfs *vfs)
 
QStringList getExcludes (const ProFileEvaluator &visitor, const QString &projectDirPath)
 
static void excludeProjects (const ProFileEvaluator &visitor, QStringList *subProjects)
 
static QJsonArray processProjects (bool topLevel, const QStringList &proFiles, const QStringList &translationsVariables, const QHash< QString, QString > &outDirMap, ProFileGlobals *option, QMakeVfs *vfs, QMakeParser *parser, bool *fail)
 
static QJsonObject processProject (const QString &proFile, const QStringList &translationsVariables, ProFileGlobals *option, QMakeVfs *vfs, QMakeParser *parser, ProFileEvaluator &visitor)
 
int main (int argc, char **argv)
 [48]
 

Variables

static EvalHandler evalHandler
 

Function Documentation

◆ excludeProjects()

static void excludeProjects ( const ProFileEvaluator & visitor,
QStringList * subProjects )
static

Definition at line 218 of file main.cpp.

◆ getExcludes()

QStringList getExcludes ( const ProFileEvaluator & visitor,
const QString & projectDirPath )

Definition at line 207 of file main.cpp.

◆ getResources()

static QStringList getResources ( const QString & resourceFile,
QMakeVfs * vfs )
static

Definition at line 122 of file main.cpp.

References ReadQrcResult::hasError(), QMakeVfs::readFile(), QMakeVfs::ReadOk, and QMakeVfs::VfsCumulative.

Referenced by org.qtproject.qt.android.QtActivityBase::onCreate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSources() [1/2]

static QStringList getSources ( const char * var,
const char * vvar,
const QStringList & baseVPaths,
const QString & projectDir,
const ProFileEvaluator & visitor )
static

Definition at line 142 of file main.cpp.

◆ getSources() [2/2]

static QStringList getSources ( const ProFileEvaluator & visitor,
const QString & projectDir,
QMakeVfs * vfs )
static

Definition at line 151 of file main.cpp.

◆ main()

int main ( int argc,
char ** argv )

[48]

[dynamic_tooltip]

[5]

[2]

[0]

[6]

[48]

[48]

[6]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[1]

[1]

[2]

[2]

[3]

[3]

[0]

[0]

[0]

[0]

[1]

[1]

[1]

[1]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

[0]

Definition at line 333 of file main.cpp.

References evalHandler, printUsage(), and EvalHandler::verbose.

+ Here is the call graph for this function:

◆ print()

static void print ( const QString & fileName,
int lineNo,
const QString & msg )
static

Definition at line 88 of file main.cpp.

Referenced by EvalHandler::message().

+ Here is the caller graph for this function:

◆ printErr()

static void printErr ( const QString & out)
static

Definition at line 34 of file main.cpp.

References QtPrivate::asString().

+ Here is the call graph for this function:

◆ printOut()

static void printOut ( const QString & out)
static

Definition at line 29 of file main.cpp.

References QtPrivate::asString().

+ Here is the call graph for this function:

◆ printUsage()

static void printUsage ( )
static

Definition at line 60 of file main.cpp.

Referenced by main().

+ Here is the caller graph for this function:

◆ processProject()

static QJsonObject processProject ( const QString & proFile,
const QStringList & translationsVariables,
ProFileGlobals * option,
QMakeVfs * vfs,
QMakeParser * parser,
ProFileEvaluator & visitor )
static

Definition at line 237 of file main.cpp.

References ProFileEvaluator::templateType(), and ProFileEvaluator::TT_Subdirs.

+ Here is the call graph for this function:

◆ processProjects()

static QJsonArray processProjects ( bool topLevel,
const QStringList & proFiles,
const QStringList & translationsVariables,
const QHash< QString, QString > & outDirMap,
ProFileGlobals * option,
QMakeVfs * vfs,
QMakeParser * parser,
bool * fail )
static

Definition at line 281 of file main.cpp.

◆ setValue()

template<class T >
void setValue ( QJsonObject & obj,
const char * key,
T value )

Definition at line 55 of file main.cpp.

◆ toJsonValue() [1/3]

static QJsonValue toJsonValue ( const QJsonValue & v)
static

Definition at line 39 of file main.cpp.

◆ toJsonValue() [2/3]

static QJsonValue toJsonValue ( const QString & s)
static

Definition at line 44 of file main.cpp.

◆ toJsonValue() [3/3]

static QJsonValue toJsonValue ( const QStringList & lst)
static

Definition at line 49 of file main.cpp.

Variable Documentation

◆ evalHandler

static EvalHandler evalHandler
static

Definition at line 120 of file main.cpp.

Referenced by main().