Zen
A cross-platform functional programming language
|
Implementation of project generator class. More...
Public Member Functions | |
Impl (const Build::Project &project) | |
Default constructor. | |
void | build () |
Generate a build project. | |
void | make () |
Generate a make project. | |
Private Member Functions | |
void | buildProject (const Build::Config &cfg) |
Generate a build project for a configuration. | |
void | generateProject () |
Generate the project. | |
z::string | gcv (const Build::Config &cfg, const z::string &str) |
Get config value for a configuration. | |
z::string | gcv (const z::string &str) |
Get config value for project. | |
void | generateQtc () |
Generate Qt project. | |
void | generateMsvc () |
Generate MSVC project. | |
z::string | getMsvcConfigName (const Build::Config &cfg) |
Get MSVC configuration name. | |
void | generateMsvcConfig (const Build::Config &cfg, zbl::CppGen::OutFile &pro) |
Generate MSVC configuration. | |
void | writeMakeCommandLine (const Build::Config &cfg, zbl::CppGen::OutFile &pro) |
Write command line to make a project file. | |
void | writeCompileCommandLine (const Build::Config &cfg, zbl::CppGen::OutFile &pro) |
Write command line to compile a source file. | |
void | writeCommandLine (const Build::Config &cfg, zbl::CppGen::OutFile &pro) |
Write command line common parameters. | |
Private Attributes | |
const Build::Project & | _project |
The project definition. | |
z::string | _appDir |
The application directory. | |
z::string | _rootDir |
The root directory. |
Implementation of project generator class.
Impl | ( | const Build::Project & | project | ) | [inline] |
Default constructor.
project | The project definition |
void buildProject | ( | const Build::Config & | cfg | ) | [inline, private] |
Generate a build project for a configuration.
cfg | The configuration to build for |
z::string gcv | ( | const Build::Config & | cfg, |
const z::string & | str | ||
) | [inline, private] |
Get config value for a configuration.
cfg | The configuration to get value for |
str | The value to expand |
Get config value for project.
str | The value to expand |
void generateMsvcConfig | ( | const Build::Config & | cfg, |
zbl::CppGen::OutFile & | pro | ||
) | [inline, private] |
Generate MSVC configuration.
cfg | The configuration to generate |
pro | The project file |
z::string getMsvcConfigName | ( | const Build::Config & | cfg | ) | [inline, private] |
Get MSVC configuration name.
cfg | The configuration to generate |
void writeCommandLine | ( | const Build::Config & | cfg, |
zbl::CppGen::OutFile & | pro | ||
) | [inline, private] |
Write command line common parameters.
cfg | The configuration to use |
pro | The project file |
void writeCompileCommandLine | ( | const Build::Config & | cfg, |
zbl::CppGen::OutFile & | pro | ||
) | [inline, private] |
Write command line to compile a source file.
cfg | The configuration to use |
pro | The project file |
void writeMakeCommandLine | ( | const Build::Config & | cfg, |
zbl::CppGen::OutFile & | pro | ||
) | [inline, private] |
Write command line to make a project file.
cfg | The configuration to use |
pro | The project file |