QtBase  v6.3.1
Public Types | Public Member Functions | List of all members
QMakeProject Class Reference

#include <project.h>

Inheritance diagram for QMakeProject:
Inheritance graph
[legend]
Collaboration diagram for QMakeProject:
Collaboration graph
[legend]

Public Types

enum  VisitReturn
 

Public Member Functions

 QMakeProject ()
 
 QMakeProject (QMakeProject *p)
 
bool read (const QString &project, LoadFlags what=LoadAll)
 
QString projectFile () const
 
QString projectDir () const
 
QString sourceRoot () const
 
QString buildRoot () const
 
QString confFile () const
 
QString cacheFile () const
 
QString specDir () const
 
ProString expand (const QString &v, const QString &file, int line)
 
QStringList expand (const ProKey &func, const QList< ProStringList > &args)
 
bool test (const QString &v, const QString &file, int line)
 
bool test (const ProKey &func, const QList< ProStringList > &args)
 
bool isSet (const ProKey &v) const
 
bool isEmpty (const ProKey &v) const
 
ProStringListvalues (const ProKey &v)
 
int intValue (const ProKey &v, int defaultValue=0) const
 
const ProValueMapvariables () const
 
ProValueMapvariables ()
 
bool isActiveConfig (const QString &config, bool regex=false)
 
void dump () const
 
void setExtraVars (const ProValueMap &extraVars)
 
void setExtraConfigs (const ProStringList &extraConfigs)
 
bool loadSpec ()
 
VisitReturn evaluateFeatureFile (const QString &fileName, bool silent=false)
 
VisitReturn evaluateConfigFeatures ()
 
VisitReturn evaluateExpression (const ushort *&tokPtr, ProStringList *ret, bool joined)
 
ProString propertyValue (const ProKey &val) const
 
ProStringList values (const ProKey &variableName) const
 
ProString first (const ProKey &variableName) const
 
bool isHostBuild () const
 
ProString dirSep () const
 

Detailed Description

Definition at line 36 of file project.h.

Member Enumeration Documentation

◆ VisitReturn

Definition at line 142 of file qmakeevaluator.h.

Constructor & Destructor Documentation

◆ QMakeProject() [1/2]

QT_BEGIN_NAMESPACE QMakeProject::QMakeProject ( )

Definition at line 43 of file project.cpp.

◆ QMakeProject() [2/2]

QMakeProject::QMakeProject ( QMakeProject p)

Definition at line 48 of file project.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ buildRoot()

QString QMakeProject::buildRoot ( ) const
inline

Definition at line 50 of file project.h.

Here is the caller graph for this function:

◆ cacheFile()

QString QMakeProject::cacheFile ( ) const
inline

Definition at line 52 of file project.h.

Here is the caller graph for this function:

◆ confFile()

QString QMakeProject::confFile ( ) const
inline

Definition at line 51 of file project.h.

◆ dirSep()

ProString QMakeEvaluator::dirSep
inline

Definition at line 139 of file qmakeevaluator.h.

Here is the caller graph for this function:

◆ dump()

void QMakeProject::dump ( ) const

Definition at line 153 of file project.cpp.

◆ evaluateConfigFeatures()

QMakeEvaluator::VisitReturn QMakeEvaluator::evaluateConfigFeatures

Definition at line 203 of file qmakeevaluator.cpp.

Here is the caller graph for this function:

◆ evaluateExpression()

QMakeEvaluator::VisitReturn QMakeEvaluator::evaluateExpression

Definition at line 155 of file qmakeevaluator.cpp.

◆ evaluateFeatureFile()

QMakeEvaluator::VisitReturn QMakeEvaluator::evaluateFeatureFile

Definition at line 199 of file qmakeevaluator.cpp.

Here is the caller graph for this function:

◆ expand() [1/2]

QStringList QMakeProject::expand ( const ProKey func,
const QList< ProStringList > &  args 
)

Definition at line 102 of file project.cpp.

Here is the call graph for this function:

◆ expand() [2/2]

ProString QMakeProject::expand ( const QString v,
const QString file,
int  line 
)

Definition at line 128 of file project.cpp.

Here is the call graph for this function:

◆ first()

ProString QMakeEvaluator::first

Definition at line 136 of file qmakeevaluator.cpp.

Here is the caller graph for this function:

◆ intValue()

int QMakeProject::intValue ( const ProKey v,
int  defaultValue = 0 
) const
inline

For variables that are supposed to contain a single int, this method returns the numeric value. Only the first value of the variable is taken into account. The string representation is assumed to look like a C int literal.

Definition at line 96 of file project.h.

Here is the call graph for this function:

◆ isActiveConfig()

bool QMakeProject::isActiveConfig ( const QString config,
bool  regex = false 
)
inline

Definition at line 67 of file project.h.

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

◆ isEmpty()

bool QMakeProject::isEmpty ( const ProKey v) const

Definition at line 147 of file project.cpp.

Here is the caller graph for this function:

◆ isHostBuild()

bool QMakeEvaluator::isHostBuild
inline

Definition at line 140 of file qmakeevaluator.h.

Here is the caller graph for this function:

◆ isSet()

bool QMakeProject::isSet ( const ProKey v) const
inline

Definition at line 61 of file project.h.

◆ loadSpec()

bool QMakeEvaluator::loadSpec

Definition at line 163 of file qmakeevaluator.cpp.

Here is the caller graph for this function:

◆ projectDir()

QString QMakeProject::projectDir ( ) const
inline

Definition at line 48 of file project.h.

◆ projectFile()

QString QMakeProject::projectFile ( ) const
inline

Definition at line 47 of file project.h.

Here is the caller graph for this function:

◆ propertyValue()

ProString QMakeEvaluator::propertyValue

Definition at line 137 of file qmakeevaluator.cpp.

Here is the caller graph for this function:

◆ read()

bool QMakeProject::read ( const QString project,
LoadFlags  what = LoadAll 
)

Definition at line 64 of file project.cpp.

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

◆ setExtraConfigs()

void QMakeEvaluator::setExtraConfigs
inline

Definition at line 131 of file qmakeevaluator.h.

◆ setExtraVars()

void QMakeEvaluator::setExtraVars
inline

Definition at line 130 of file qmakeevaluator.h.

◆ sourceRoot()

QString QMakeProject::sourceRoot ( ) const
inline

Definition at line 49 of file project.h.

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

◆ specDir()

QString QMakeProject::specDir ( ) const
inline

Definition at line 53 of file project.h.

◆ test() [1/2]

bool QMakeProject::test ( const ProKey func,
const QList< ProStringList > &  args 
)

Definition at line 84 of file project.cpp.

Here is the call graph for this function:

◆ test() [2/2]

bool QMakeProject::test ( const QString v,
const QString file,
int  line 
)
inline

Definition at line 57 of file project.h.

Here is the call graph for this function:

◆ values() [1/2]

ProStringList& QMakeProject::values ( const ProKey v)
inline

Definition at line 63 of file project.h.

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

◆ values() [2/2]

ProStringList QMakeEvaluator::values

Definition at line 134 of file qmakeevaluator.cpp.

◆ variables() [1/2]

ProValueMap& QMakeProject::variables ( )
inline

Definition at line 66 of file project.h.

◆ variables() [2/2]

const ProValueMap& QMakeProject::variables ( ) const
inline

Definition at line 65 of file project.h.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: