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
ProFileEvaluator Class Reference

#include <profileevaluator.h>

+ Collaboration diagram for ProFileEvaluator:

Public Types

enum  TemplateType {
  TT_Unknown = 0 , TT_Application , TT_Library , TT_Script ,
  TT_Aux , TT_Subdirs
}
 

Public Member Functions

 ProFileEvaluator (ProFileGlobals *option, QMakeParser *parser, QMakeVfs *vfs, QMakeHandler *handler)
 
 ~ProFileEvaluator ()
 
ProFileEvaluator::TemplateType templateType () const
 
void setExtraVars (const QHash< QString, QStringList > &extraVars)
 
void setExtraConfigs (const QStringList &extraConfigs)
 
void setOutputDir (const QString &dir)
 
bool loadNamedSpec (const QString &specDir, bool hostSpec)
 
bool accept (ProFile *pro, QMakeEvaluator::LoadFlags flags=QMakeEvaluator::LoadAll)
 
bool contains (const QString &variableName) const
 
QString value (const QString &variableName) const
 
QStringList values (const QString &variableName) const
 
QStringList values (const QString &variableName, const ProFile *pro) const
 
QStringList absolutePathValues (const QString &variable, const QString &baseDirectory) const
 
QStringList absoluteFileValues (const QString &variable, const QString &baseDirectory, const QStringList &searchDirs, const ProFile *pro) const
 
QString propertyValue (const QString &val) const
 
QString resolvedMkSpec () const
 

Static Public Member Functions

static void initialize ()
 

Detailed Description

Definition at line 28 of file profileevaluator.h.

Member Enumeration Documentation

◆ TemplateType

Enumerator
TT_Unknown 
TT_Application 
TT_Library 
TT_Script 
TT_Aux 
TT_Subdirs 

Definition at line 31 of file profileevaluator.h.

Constructor & Destructor Documentation

◆ ProFileEvaluator()

ProFileEvaluator::ProFileEvaluator ( ProFileGlobals * option,
QMakeParser * parser,
QMakeVfs * vfs,
QMakeHandler * handler )

Definition at line 21 of file profileevaluator.cpp.

References ProFileEvaluator().

Referenced by ProFileEvaluator().

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

◆ ~ProFileEvaluator()

ProFileEvaluator::~ProFileEvaluator ( )

Definition at line 27 of file profileevaluator.cpp.

Member Function Documentation

◆ absoluteFileValues()

QStringList ProFileEvaluator::absoluteFileValues ( const QString & variable,
const QString & baseDirectory,
const QStringList & searchDirs,
const ProFile * pro ) const

Definition at line 96 of file profileevaluator.cpp.

◆ absolutePathValues()

QStringList ProFileEvaluator::absolutePathValues ( const QString & variable,
const QString & baseDirectory ) const

Definition at line 83 of file profileevaluator.cpp.

◆ accept()

bool ProFileEvaluator::accept ( ProFile * pro,
QMakeEvaluator::LoadFlags flags = QMakeEvaluator::LoadAll )

◆ contains()

bool ProFileEvaluator::contains ( const QString & variableName) const

Definition at line 32 of file profileevaluator.cpp.

References ProKey::ProKey(), QMakeEvaluator::m_valuemapStack, and ProValueMapStack::top().

+ Here is the call graph for this function:

◆ initialize()

QT_BEGIN_NAMESPACE void ProFileEvaluator::initialize ( )
static

Definition at line 16 of file profileevaluator.cpp.

◆ loadNamedSpec()

bool ProFileEvaluator::loadNamedSpec ( const QString & specDir,
bool hostSpec )

Definition at line 163 of file profileevaluator.cpp.

References QMakeEvaluator::loadSpecInternal(), QMakeEvaluator::m_hostBuild, and QMakeEvaluator::updateMkspecPaths().

+ Here is the call graph for this function:

◆ propertyValue()

QString ProFileEvaluator::propertyValue ( const QString & val) const

Definition at line 177 of file profileevaluator.cpp.

References ProKey::ProKey(), QMakeEvaluator::m_option, QMakeGlobals::propertyValue(), and ProString::toQString().

+ Here is the call graph for this function:

◆ resolvedMkSpec()

QString ProFileEvaluator::resolvedMkSpec ( ) const

Definition at line 182 of file profileevaluator.cpp.

◆ setExtraConfigs()

void ProFileEvaluator::setExtraConfigs ( const QStringList & extraConfigs)

Definition at line 202 of file profileevaluator.cpp.

References QMakeEvaluator::setExtraConfigs().

+ Here is the call graph for this function:

◆ setExtraVars()

void ProFileEvaluator::setExtraVars ( const QHash< QString, QStringList > & extraVars)

Definition at line 194 of file profileevaluator.cpp.

References QMakeEvaluator::setExtraVars().

+ Here is the call graph for this function:

◆ setOutputDir()

void ProFileEvaluator::setOutputDir ( const QString & dir)

Definition at line 207 of file profileevaluator.cpp.

◆ templateType()

ProFileEvaluator::TemplateType ProFileEvaluator::templateType ( ) const

Definition at line 144 of file profileevaluator.cpp.

References ProKey::ProKey(), TT_Application, TT_Aux, TT_Library, TT_Script, TT_Subdirs, TT_Unknown, and QMakeEvaluator::values().

Referenced by processProject().

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

◆ value()

QString ProFileEvaluator::value ( const QString & variableName) const

Definition at line 37 of file profileevaluator.cpp.

◆ values() [1/2]

QStringList ProFileEvaluator::values ( const QString & variableName) const

Definition at line 46 of file profileevaluator.cpp.

References ProKey::ProKey(), and QMakeEvaluator::values().

+ Here is the call graph for this function:

◆ values() [2/2]

QStringList ProFileEvaluator::values ( const QString & variableName,
const ProFile * pro ) const

Definition at line 56 of file profileevaluator.cpp.

References ProKey::ProKey(), and QMakeEvaluator::m_valuemapStack.

+ Here is the call graph for this function:

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