Public Member Functions |
| Project () |
| Constructor for abstract base class.
|
Project & | setRunMode (const RunMode::T &val) |
| Set run mode.
|
const RunMode::T & | getRunMode () const |
| Get run mode.
|
Project & | setName (const z::string &val) |
| Set project name.
|
const z::string & | getName () const |
| Get project name.
|
Project & | setProjectType (const z::string &val) |
| Set project type.
|
const z::string & | getProjectType () const |
| Get project type.
|
Project & | setSrc (const z::string &val) |
| Set source directory.
|
const z::string & | getSrc () const |
| Get source directory.
|
Project & | setOut (const z::string &val) |
| Set output directory.
|
const z::string & | getOut () const |
| Get output directory.
|
Project & | setBldDir (const z::string &val) |
| Set build directory.
|
const z::string & | getBldDir () const |
| Get build directory.
|
Project & | setRmBldDir (const bool &val) |
| Set flag whether to delete bld directory.
|
const bool & | getRmBldDir () const |
| Get rmdir flag.
|
Project & | setNoBuild (const bool &val) |
| Set noBuild flag.
|
const bool & | getNoBuild () const |
| Get nobuild flag.
|
Project & | setNoTest (const bool &val) |
| Set no Test flag.
|
const bool & | getNoTest () const |
| Get notest flag.
|
Project & | setMain (const bool &val) |
| Set main flag.
|
const bool & | getMain () const |
| Get main flag.
|
Project & | addFile (const Unit &val) |
| Add file.
|
const z::list< Unit > & | getFileList () const |
| Get file list.
|
Project & | addConfig (const Config &val) |
| Add config.
|
const z::list< Config > & | getConfigList () const |
| Get config list.
|
Project & | addGenCfg (const z::string &val) |
| Add config to list of config's to generate.
|
const z::list< z::string > & | getGenCfgList () const |
| Get config list to generate.
|
const z::list< Config > & | getCConfigList () const |
| Get config list.
|
Project & | addFileName (const z::string &val) |
| Add file name.
|
bool | inGenCfgList (const Config &cfg) const |
| Check if a config is in the gen config list.
|
Project & | setProjectFile (const z::string &val) |
| Set project file name.
|
const z::string & | getProjectFile () const |
| Get project file name.
|
Project & | setRoot (const z::string &val) |
| Set root directory.
|
const z::string & | getRoot () const |
| Get root directory.
|
Project & | setConfig (const z::string &val) |
| Set config name.
|
const z::string & | getConfig () const |
| Get config name.
|
Config & | getCmdConfig () |
| Get command line configuration.
|
const Config & | getCmdConfig () const |
| Get command line configuration.
|
bool | isZppExt (const z::string &ext) const |
| Check if extension is a ZPP file.
|
bool | isCppExt (const z::string &ext) const |
| Check if extension is a CPP file.
|
bool | isHppExt (const z::string &ext) const |
| Check if extension is a HPP file.
|
z::string | getAbsoluteDirPath (const z::string &filename) const |
| Convert filename to absolute path.
|
z::string | getDirPath (const z::string &dir, const z::string &filename) const |
| Convert filename to absolute path.
|
z::string | getAbsoluteFilePath (const z::string &filename) const |
| Convert filename to absolute path.
|
z::string | getFilePath (const z::string &dir, const z::string &filename) const |
| Convert filename to absolute path.
|
z::string | getRelativeFilePath (const z::string &srcdir, const z::string &dstdir, const z::string &filename) const |
| Convert filename to path relative to given path.
|
void | verifyDir (const z::string &name, const z::string &dir, const Config &cfg) const |
| Check if directory exists. If not, make it.
|
z::string | getExt (const Build::Config &cfg) const |
| Get output extension depending on output type and platform.
|
z::string | getConfigValue (const Build::Config &cfg, const z::string &val) const |
| Get config value, expanded.
|
z::string | getConfigValue (const z::string &val) const |
| Get config value, expanded.
|
Private Attributes |
RunMode::T | _runMode |
| The run mode for the compiler.
|
z::string | _name |
| Project name.
|
z::string | _project |
| Project type.
|
z::string | _src |
| Source directory.
|
z::string | _out |
| Outpout directory.
|
z::string | _bldDir |
| Build directory.
|
bool | _rmBldDir |
| True if build directory should be deleted.
|
bool | _noBuild |
| True if build should not be called.
|
bool | _noTest |
| True if unit test should not be called.
|
bool | _main |
| True if main() should be generated.
|
z::list< Unit > | _fileList |
| List of files in project.
|
z::list< Config > | _cfgList |
| List of config's in project.
|
z::list< z::string > | _genCfgList |
| Subset of config's to generate project for.
|
z::string | _projectFile |
| Project file name.
|
z::string | _root |
| Root directory.
|
z::string | _config |
| Config name.
|
z::list< Config > | _cmdCfgList |
| Command line config list (contains only one config)
|
z::string | _zppExtensionList |
| List of extensions for zpp files.
|
z::string | _cppExtensionList |
| List of extensions for cpp files.
|
z::string | _hppExtensionList |
| List of extensions for hpp files.
|
This class represents a project.
- Todo:
- Explain GenConfigList