Zen
A cross-platform functional programming language

ProGen::Impl Class Reference

Implementation of project generator class. More...

List of all members.

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.

Detailed Description

Implementation of project generator class.


Constructor & Destructor Documentation

Impl ( const Build::Project project) [inline]

Default constructor.

Parameters:
projectThe project definition

Member Function Documentation

void buildProject ( const Build::Config cfg) [inline, private]

Generate a build project for a configuration.

Parameters:
cfgThe configuration to build for
z::string gcv ( const Build::Config cfg,
const z::string str 
) [inline, private]

Get config value for a configuration.

Parameters:
cfgThe configuration to get value for
strThe value to expand
Returns:
The expanded value
z::string gcv ( const z::string str) [inline, private]

Get config value for project.

Parameters:
strThe value to expand
Returns:
The expanded value
void generateMsvcConfig ( const Build::Config cfg,
zbl::CppGen::OutFile pro 
) [inline, private]

Generate MSVC configuration.

Parameters:
cfgThe configuration to generate
proThe project file
z::string getMsvcConfigName ( const Build::Config cfg) [inline, private]

Get MSVC configuration name.

Parameters:
cfgThe configuration to generate
Returns:
The config name
void writeCommandLine ( const Build::Config cfg,
zbl::CppGen::OutFile pro 
) [inline, private]

Write command line common parameters.

Parameters:
cfgThe configuration to use
proThe project file
void writeCompileCommandLine ( const Build::Config cfg,
zbl::CppGen::OutFile pro 
) [inline, private]

Write command line to compile a source file.

Parameters:
cfgThe configuration to use
proThe project file
void writeMakeCommandLine ( const Build::Config cfg,
zbl::CppGen::OutFile pro 
) [inline, private]

Write command line to make a project file.

Parameters:
cfgThe configuration to use
proThe project file

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines