RuleEngine Class Reference
#include <RuleEngine>
Public Types
- enum Result { Succeeded, Failed, NothingToDo }
- enum StringFlags { None, Evaluatable, NoEcho, Hidden, ..., EchoIfNeeded }
Public Functions
- Result createFile ( Project * project, const QString & filename )
- Result execute ( Project * project, const QString & r = QString() )
Static Public Members
- StringFlags flags ( const QString & input, QString & output )
Detailed Description
Member Type Documentation
enum RuleEngine::Result
Constant | Value |
RuleEngine::Succeeded | 0 |
RuleEngine::Failed | 1 |
RuleEngine::NothingToDo | 2 |
enum RuleEngine::StringFlags
Constant | Value |
RuleEngine::None | 0x0000 |
RuleEngine::Evaluatable | 0x0001 |
RuleEngine::NoEcho | 0x0002 |
RuleEngine::Hidden | 0x0004 |
RuleEngine::NoFail | 0x0008 |
RuleEngine::Verbatim | 0x0010 |
RuleEngine::Optional | 0x0020 |
RuleEngine::CallFunction | 0x0040 |
RuleEngine::TTy | 0x0080 |
RuleEngine::Ordered | 0x0100 |
RuleEngine::Test | 0x0200 |
RuleEngine::EchoIfNeeded | 0x0400 |
Member Function Documentation
Result RuleEngine::createFile ( Project * project, const QString & filename )
Create filename for project.
Result RuleEngine::execute ( Project * project, const QString & r = QString() )
Execute rule r in project project.
For each rule, the following occurs:
- Run each prereq *once*, updating the list of prereqs each time (rules can create new prereqs)
- Run the commands if:
- Any inputFiles are newer than any of the outputFiles
- There are no outputFiles
- An inputFile is missing, but can be created by another rule (rescan *new* inputFiles and prereqs)
- Any (non-hidden) prerequisite was run (not just tested)
- -forceRule was passed
- Fail the rule if:
- An input File is missing, and cannot be created by another rule
- A (non-optional) prerequisite is missing
StringFlags RuleEngine::flags ( const QString & input, QString & output ) [static]
Returns the flags for input. Return the corrected string in output.
Copyright © 2009 Trolltech |
Qt Extended - QBuild Maintainer Guide |