Commit bdfa41a4 authored by Ken Martin's avatar Ken Martin
Browse files

updates

parent 564074b0
......@@ -272,6 +272,13 @@ void cmGlobalCodeWarriorGenerator::WriteGroupList(std::ostream& fout)
{
fout << "<GROUPLIST>\n";
unsigned int i;
// for each local generator
for (i = 0; i < m_LocalGenerators.size(); ++i)
{
static_cast<cmLocalCodeWarriorGenerator *>(m_LocalGenerators[i])->WriteGroups(fout);
}
fout << "</GROUPLIST>\n";
}
......
......@@ -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";
}
......@@ -57,9 +57,11 @@ public:
void SetBuildType(BuildType,const char *name);
void WriteTargets(std::ostream& fout);
void WriteGroups(std::ostream& fout);
private:
void WriteTarget(std::ostream& fout, const char *name, cmTarget const *l);
void WriteGroup(std::ostream& fout, const char *name, cmTarget const *l);
void WriteSettingList(std::ostream& fout, const char *name,
cmTarget const *l);
void WriteFileList(std::ostream& fout, const char *name, cmTarget const *l);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment