aboutsummaryrefslogtreecommitdiff
path: root/src/build.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.cpp')
-rw-r--r--src/build.cpp27
1 files changed, 25 insertions, 2 deletions
diff --git a/src/build.cpp b/src/build.cpp
index 5121d1f..889efa4 100644
--- a/src/build.cpp
+++ b/src/build.cpp
@@ -85,10 +85,10 @@ void Build::execAction( const std::string &sWhat )
85 sWhat.c_str() 85 sWhat.c_str()
86 ); 86 );
87 Target *pTarget = mTarget[pAct->getWhat()]; 87 Target *pTarget = mTarget[pAct->getWhat()];
88 pView->beginCommand( pAct->getAct(), pAct->getWhat() ); 88 //pView->beginCommand( pAct->getAct(), pAct->getWhat() );
89 if( !pTarget->wasRun() ) 89 if( !pTarget->wasRun() )
90 pTarget->run( pAct->getAct(), *this ); 90 pTarget->run( pAct->getAct(), *this );
91 pView->endCommand(); 91 //pView->endCommand();
92 } 92 }
93 93
94 pView->endAction(); 94 pView->endAction();
@@ -364,3 +364,26 @@ void Build::chainTarget( const std::string &sName )
364 (*i).second->run( Action::actCheck, *this ); 364 (*i).second->run( Action::actCheck, *this );
365} 365}
366 366
367void Build::printInfo()
368{
369 printf("---- Build Info ----\n");
370 printf("Valid actions: ");
371 for( ActionMap::iterator i = mAction.begin(); i != mAction.end(); i++ )
372 {
373 if( i != mAction.begin() ) printf(", ");
374 if( (*i).first == "" )
375 printf("*default*");
376 else
377 printf("%s", (*i).first.c_str() );
378 }
379 printf("\n\n");
380}
381
382void Build::setMode( Action::eAction nAct )
383{
384 for( ActionMap::iterator i = mAction.begin(); i != mAction.end(); i++ )
385 {
386 (*i).second->setMode( nAct );
387 }
388}
389