summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalCodeWarriorGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-10-04 15:42:16 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-10-04 15:42:16 (GMT)
commitbdfa41a4a6c0e87417bb5a0fc26edb2f42e08274 (patch)
tree32cadf967e12459cf4bc2806365e7b3bd63c898c /Source/cmLocalCodeWarriorGenerator.cxx
parent564074b06c909626b4e048daee25c40142a1ebee (diff)
downloadCMake-bdfa41a4a6c0e87417bb5a0fc26edb2f42e08274.zip
CMake-bdfa41a4a6c0e87417bb5a0fc26edb2f42e08274.tar.gz
CMake-bdfa41a4a6c0e87417bb5a0fc26edb2f42e08274.tar.bz2
updates
Diffstat (limited to 'Source/cmLocalCodeWarriorGenerator.cxx')
-rw-r--r--Source/cmLocalCodeWarriorGenerator.cxx33
1 files changed, 33 insertions, 0 deletions
diff --git a/Source/cmLocalCodeWarriorGenerator.cxx b/Source/cmLocalCodeWarriorGenerator.cxx
index b50ec15..5745668 100644
--- a/Source/cmLocalCodeWarriorGenerator.cxx
+++ b/Source/cmLocalCodeWarriorGenerator.cxx
@@ -116,3 +116,36 @@ void cmLocalCodeWarriorGenerator::WriteFileList(std::ostream& fout,
}
fout << "</FILELIST>\n";
}
+
+void cmLocalCodeWarriorGenerator::WriteGroups(std::ostream& fout)
+{
+ cmTargets &tgts = m_Makefile->GetTargets();
+ for(cmTargets::iterator l = tgts.begin();
+ l != tgts.end(); l++)
+ {
+ this->WriteGroup(fout,l->first.c_str(),&(l->second));
+ }
+}
+
+void cmLocalCodeWarriorGenerator::WriteGroup(std::ostream& fout,
+ const char *tgtName,
+ cmTarget const *l)
+{
+ fout << "<GROUP><NAME>" << tgtName << "</NAME>\n";
+
+ // for each file
+ std::vector<cmSourceFile*> const& classes = l->GetSourceFiles();
+ for(std::vector<cmSourceFile*>::const_iterator i = classes.begin();
+ i != classes.end(); i++)
+ {
+ std::string source = (*i)->GetFullPath();
+ fout << "<FILEREF>\n";
+ fout << "<TARGETNAME>" << tgtName << "</TARGETNAME>\n";
+ fout << "<PATHTYPE>Name</PATHTYPE>\n";
+ fout << "<PATH>" << source << "</PATH>\n";
+ fout << "<PATHFORMAT>Generic</PATHFORMAT>\n";
+ fout << "</FILEREF>\n";
+ }
+
+ fout << "</GROUP>\n";
+}