From ff938b977db21378a1f016f65e7345c50e71ef8f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 24 Apr 2007 14:09:50 +0000 Subject: Half way there on the road to implementing basic group functionality. You can create groups, you can't do anything with them yet (although the syntax is supported already.) --- src/buildparser.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/buildparser.cpp') 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 ) lTargetTmp.back().second.lVar.push_back( SetVar( sVar, sVal, nHow ) ); } +void BuildParser::addTargetGroup( const char *sGroup ) +{ + lTargetTmp.back().second.lGroups.push_back( sGroup ); +} + // // Function functions // @@ -458,6 +463,12 @@ Build *BuildParser::genBuild() ); bld->addTarget( pTarget ); + + for( StringList::iterator c = (*i).second.lGroups.begin(); + c != (*i).second.lGroups.end(); c++ ) + { + bld->addToGroup( *c, pTarget ); + } } StringList lReqs = buildToStringList( (*i).second.lRequires, StringList() -- cgit v1.2.3