CREATE_PROJECT: Only write engineMap references

This commit is contained in:
SupSuper
2020-11-11 04:18:25 +00:00
parent e9b3974ff8
commit 8e39764f03
4 changed files with 6 additions and 24 deletions
+3 -12
View File
@@ -45,10 +45,7 @@ void CodeBlocksProvider::createWorkspace(const BuildSetup &setup) {
writeReferences(setup, workspace);
// Note we assume that the UUID map only includes UUIDs for enabled engines!
for (UUIDMap::const_iterator i = _allProjUuidMap.begin(); i != _allProjUuidMap.end(); ++i) {
if (i->first == setup.projectName)
continue;
for (UUIDMap::const_iterator i = _engineUuidMap.begin(); i != _engineUuidMap.end(); ++i) {
workspace << "\t\t<Project filename=\"" << i->first << ".cbp\" />\n";
}
@@ -153,10 +150,7 @@ void CodeBlocksProvider::createProjectFile(const std::string &name, const std::s
for (StringList::const_iterator i = libraries.begin(); i != libraries.end(); ++i)
project << "\t\t\t\t\t<Add library=\"" << (*i) << "\" />\n";
for (UUIDMap::const_iterator i = _allProjUuidMap.begin(); i != _allProjUuidMap.end(); ++i) {
if (i->first == setup.projectName)
continue;
for (UUIDMap::const_iterator i = _engineUuidMap.begin(); i != _engineUuidMap.end(); ++i) {
project << "\t\t\t\t\t<Add library=\"" << setup.projectName << "\\engines\\" << i->first << "\\lib" << i->first << ".a\" />\n";
}
@@ -277,10 +271,7 @@ void CodeBlocksProvider::writeFileListToProject(const FileNode &dir, std::ofstre
void CodeBlocksProvider::writeReferences(const BuildSetup &setup, std::ofstream &output) {
output << "\t\t<Project filename=\"" << setup.projectName << ".cbp\" active=\"1\">\n";
for (UUIDMap::const_iterator i = _allProjUuidMap.begin(); i != _allProjUuidMap.end(); ++i) {
if (i->first == " << PROJECT_NAME << ")
continue;
for (UUIDMap::const_iterator i = _engineUuidMap.begin(); i != _engineUuidMap.end(); ++i) {
output << "\t\t\t<Depends filename=\"" << i->first << ".cbp\" />\n";
}