cbp2make
Makefile generation tool for Code::Blocks IDE
|
Build manager for Code::Blocks projects. More...
#include <cbbuildmgr.h>
Public Member Functions | |
CPlatformSet & | Platforms (void) |
Returns reference to the set of platforms in build configuration. More... | |
CToolChainSet & | ToolChains (void) |
Returns reference to the set of toolchains in build configuration. More... | |
CCodeBlocksBuildConfig & | Config (void) |
Returns reference to the build configuration. More... | |
void | Clear (void) |
Resets build manager to the initial state. More... | |
bool | LoadProjectOrWorkspace (const CString &FileName) |
Loads a workspace or a project file whichever specified by FileName. More... | |
void | Show (void) |
Prints project or workspace contents to standard output. More... | |
void | GenerateMakefile (const CString &FileName) |
Generates makefile text and writes it to the file specified by FileName. More... | |
CCodeBlocksBuildManager (void) | |
Creates build manager. More... | |
~CCodeBlocksBuildManager (void) | |
Destroys build manager. More... | |
Private Attributes | |
CCodeBlocksWorkspace | m_Workspace |
Code::Blocks workspace object. More... | |
CCodeBlocksProject | m_Project |
Code::Blocks project object. More... | |
CCodeBlocksBuildConfig | m_Config |
Build configuration. More... | |
bool | m_ProjectLoaded |
Indicated that a Code::Blocks project was loaded. More... | |
bool | m_WorkspaceLoaded |
Indicates that a Code::Blocks workspace was loaded. More... | |
Build manager for Code::Blocks projects.
Manages workspace and project settings and starts makefile generation process.
CCodeBlocksBuildManager::CCodeBlocksBuildManager | ( | void | ) |
Creates build manager.
CCodeBlocksBuildManager::~CCodeBlocksBuildManager | ( | void | ) |
Destroys build manager.
CCodeBlocksBuildManager::Clear | ( | void | ) |
Resets build manager to the initial state.
|
inline |
Returns reference to the build configuration.
CCodeBlocksBuildManager::GenerateMakefile | ( | const CString & | FileName | ) |
Generates makefile text and writes it to the file specified by FileName.
FileName | a file name for makefile. |
Build manager does not generate makefile text by itself, makefile for workspace is generated by CCodeBlocksWorkspace and makefiles for individual projects in a workspace are generated by CCodeBlocksProject.
CCodeBlocksBuildManager::LoadProjectOrWorkspace | ( | const CString & | FileName | ) |
Loads a workspace or a project file whichever specified by FileName.
FileName | a file name of a project or workspace. |
|
inline |
Returns reference to the set of platforms in build configuration.
CCodeBlocksBuildManager::Show | ( | void | ) |
Prints project or workspace contents to standard output.
|
inline |
Returns reference to the set of toolchains in build configuration.
|
private |
Build configuration.
Includes installation-specific parametes such as compilers, toolchains and global variables.
|
private |
Code::Blocks project object.
|
private |
Indicated that a Code::Blocks project was loaded.
Build manager CCodeBlocksBuildManager can load both Code::Blocks workspace (.workspace) and Code::Blocks project (.cbp) files. A flag is required to tell if a file is loaded and what kind of file it is.
|
private |
Code::Blocks workspace object.
|
private |
Indicates that a Code::Blocks workspace was loaded.
Build manager CCodeBlocksBuildManager can load both Code::Blocks workspace (.workspace) and Code::Blocks project (.cbp) files. A flag is required to tell if a file is loaded and what kind of file it is.