summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-07 04:00:32 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-07 04:00:32 (GMT)
commite0b86a44965766e78ecabd5e7d73696eee9c9d24 (patch)
tree7b96f155f4a92dafb62cc1bd7675e7a3a1db5be3 /Source/cmExtraCodeBlocksGenerator.cxx
parentd43269847a5bdb558c65ea14a0bd2831cc801e53 (diff)
downloadCMake-e0b86a44965766e78ecabd5e7d73696eee9c9d24.zip
CMake-e0b86a44965766e78ecabd5e7d73696eee9c9d24.tar.gz
CMake-e0b86a44965766e78ecabd5e7d73696eee9c9d24.tar.bz2
ENH: don't create a CodeBlocks workspace, the CodeBlocks projects cover
everything what's needed Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index ddfd32e..e0894c6 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -67,54 +67,15 @@ void cmExtraCodeBlocksGenerator::SetGlobalGenerator(
void cmExtraCodeBlocksGenerator::Generate()
{
-
- const cmMakefile* topLevelMakefile =
- this->GlobalGenerator->GetLocalGenerators()[0]->GetMakefile();
-
- std::string workspaceName = topLevelMakefile->GetProjectName();
- std::string outputDir=topLevelMakefile->GetStartOutputDirectory();
- std::string workspaceFilename = outputDir;
- workspaceFilename += "/";
- workspaceFilename += workspaceName;
- workspaceFilename += ".workspace";
-
- cmGeneratedFileStream fout(workspaceFilename.c_str());
- if(!fout)
- {
- return;
- }
-
- fout<<"<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\" ?>\n"
- "<CodeBlocks_workspace_file>\n"
- " <Workspace title=\""<<workspaceName<<"\">\n";
-
- bool firstProject = true;
// for each sub project in the project create a codeblocks project
for (std::map<cmStdString, std::vector<cmLocalGenerator*> >::const_iterator
it = this->GlobalGenerator->GetProjectMap().begin();
it!= this->GlobalGenerator->GetProjectMap().end();
++it)
{
- const cmMakefile* mf=it->second[0]->GetMakefile();
- std::string filename=mf->GetStartOutputDirectory();
- filename+="/";
- filename+=mf->GetProjectName();
- filename+=".cbp";
-
- if (firstProject)
- {
- fout<<" <Project filename=\""<< filename<<"\" active=\"1\"/>\n";
- }
- else
- {
- fout<<" <Project filename=\""<< filename<<"\" />\n";
- }
// create a project file
this->CreateProjectFile(it->second);
}
-
- fout<<" </Workspace>\n"
- "</CodeBlocks_workspace_file>\n";
}