aboutsummaryrefslogtreecommitdiff
path: root/src/buildparser.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-07 00:45:14 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-07 00:45:14 +0000
commitfe5de4801bfe7926e116585e2f71399cb664dfb2 (patch)
tree9c8bda69f30d309bf4a4e583749d9ac32fd91731 /src/buildparser.cpp
parent375112224567de0b2f3666cef13b1c5832f1ed6f (diff)
downloadbuild-fe5de4801bfe7926e116585e2f71399cb664dfb2.tar.gz
build-fe5de4801bfe7926e116585e2f71399cb664dfb2.tar.bz2
build-fe5de4801bfe7926e116585e2f71399cb664dfb2.tar.xz
build-fe5de4801bfe7926e116585e2f71399cb664dfb2.zip
Really getting there, the rest of the work should be in the build class and
related build-time components!
Diffstat (limited to '')
-rw-r--r--src/buildparser.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/buildparser.cpp b/src/buildparser.cpp
index 5ebcfd3..90e21e2 100644
--- a/src/buildparser.cpp
+++ b/src/buildparser.cpp
@@ -441,6 +441,29 @@ Build *BuildParser::genBuild()
441 bld->addRule( pRule ); 441 bld->addRule( pRule );
442 } 442 }
443 443
444 for( ActionTmpList::iterator i = lActions.begin();
445 i != lActions.end(); i++ )
446 {
447 Action *pAct = new Action;
448 pAct->setName( (*i).first );
449
450 for( ActionTmpCmdList::iterator j = (*i).second.begin();
451 j != (*i).second.end(); j++ )
452 {
453 StringList lWhat = buildToStringList(
454 (*j).second, StringList()
455 );
456
457 for( StringList::iterator k = lWhat.begin();
458 k != lWhat.end(); k++ )
459 {
460 pAct->addCommand( (Action::eAction)((*j).first), *k );
461 }
462 }
463
464 bld->addAction( pAct );
465 }
466
444 return bld; 467 return bld;
445} 468}
446 469