[cmake-commits] alex committed cmExtraCodeBlocksGenerator.cxx 1.15
1.16
cmake-commits at cmake.org
cmake-commits at cmake.org
Sun Nov 25 05:27:00 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv13906
Modified Files:
cmExtraCodeBlocksGenerator.cxx
Log Message:
STYLE: add some comments
Alex
Index: cmExtraCodeBlocksGenerator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmExtraCodeBlocksGenerator.cxx,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- cmExtraCodeBlocksGenerator.cxx 22 Oct 2007 16:48:39 -0000 1.15
+++ cmExtraCodeBlocksGenerator.cxx 25 Nov 2007 10:26:58 -0000 1.16
@@ -149,6 +149,7 @@
bool testTargetCreated = false;
bool packageTargetCreated = false;
+ // add all executable and library targets and some of the GLOBAL targets
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
lg!=lgs.end(); lg++)
{
@@ -160,6 +161,7 @@
switch(ti->second.GetType())
{
case cmTarget::GLOBAL_TARGET:
+ // only add these global targets once
if ((ti->first=="install") && (installTargetCreated==false))
{
installTargetCreated=true;
@@ -225,6 +227,11 @@
" </Target>\n";
}
break;
+ // ignore these:
+ case cmTarget::UTILITY:
+ case cmTarget::INSTALL_FILES:
+ case cmTarget::INSTALL_PROGRAMS:
+ case cmTarget::INSTALL_DIRECTORY:
default:
break;
}
@@ -234,6 +241,7 @@
fout<<" </Build>\n";
+ // Collect all used source files in the project
std::map<std::string, std::string> sourceFiles;
for (std::vector<cmLocalGenerator*>::const_iterator lg=lgs.begin();
lg!=lgs.end(); lg++)
@@ -263,6 +271,7 @@
}
}
+ // insert all used source files in the CodeBlocks project
for (std::map<std::string, std::string>::const_iterator
sit=sourceFiles.begin();
sit!=sourceFiles.end();
@@ -277,6 +286,7 @@
}
+// Translate the cmake compiler id into the CodeBlocks compiler id
std::string cmExtraCodeBlocksGenerator::GetCBCompilerId(const cmMakefile* mf)
{
// figure out which language to use
@@ -319,6 +329,7 @@
}
+// Translate the cmake target type into the CodeBlocks target type id
int cmExtraCodeBlocksGenerator::GetCBTargetType(cmTarget* target)
{
if ( target->GetType()==cmTarget::EXECUTABLE)
@@ -345,6 +356,8 @@
return 4;
}
+// Create the command line for building the given target using the selected
+// make
std::string cmExtraCodeBlocksGenerator::BuildMakeCommand(
const std::string& make, const char* makefile, const char* target)
{
More information about the Cmake-commits
mailing list