aboutsummaryrefslogtreecommitdiff
path: root/src/buildparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/buildparser.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/buildparser.cpp b/src/buildparser.cpp
index 1c4f041..364aaa5 100644
--- a/src/buildparser.cpp
+++ b/src/buildparser.cpp
@@ -83,6 +83,11 @@ void BuildParser::addTargetSet( const char *sVar, const char *sVal, int nHow )
83 lTargetTmp.back().second.lVar.push_back( SetVar( sVar, sVal, nHow ) ); 83 lTargetTmp.back().second.lVar.push_back( SetVar( sVar, sVal, nHow ) );
84} 84}
85 85
86void BuildParser::addTargetGroup( const char *sGroup )
87{
88 lTargetTmp.back().second.lGroups.push_back( sGroup );
89}
90
86// 91//
87// Function functions 92// Function functions
88// 93//
@@ -458,6 +463,12 @@ Build *BuildParser::genBuild()
458 ); 463 );
459 464
460 bld->addTarget( pTarget ); 465 bld->addTarget( pTarget );
466
467 for( StringList::iterator c = (*i).second.lGroups.begin();
468 c != (*i).second.lGroups.end(); c++ )
469 {
470 bld->addToGroup( *c, pTarget );
471 }
461 } 472 }
462 StringList lReqs = buildToStringList( 473 StringList lReqs = buildToStringList(
463 (*i).second.lRequires, StringList() 474 (*i).second.lRequires, StringList()