aboutsummaryrefslogtreecommitdiff
path: root/src/buildparser.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-04-24 14:09:50 +0000
committerMike Buland <eichlan@xagasoft.com>2007-04-24 14:09:50 +0000
commitff938b977db21378a1f016f65e7345c50e71ef8f (patch)
tree0f05b9b5b5ea13ce234cdd27e1eb8ccbccb2dc51 /src/buildparser.cpp
parentbe41caa5ca6756c7809cabaf6d8bee321928c45a (diff)
downloadbuild-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.gz
build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.bz2
build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.xz
build-ff938b977db21378a1f016f65e7345c50e71ef8f.zip
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.)
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()