diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2006-08-22 06:19:44 +0000 | 
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-22 06:19:44 +0000 | 
| commit | ee98faf71642cf351d5cda241679b094aeec65ce (patch) | |
| tree | 881b7a8b71fc9b9a21e6bca05da6f731ae1a2d64 /src/builder.cpp | |
| parent | 8829c8548ea26abaf2e7d2f1d85e0b99757f1978 (diff) | |
| download | build-ee98faf71642cf351d5cda241679b094aeec65ce.tar.gz build-ee98faf71642cf351d5cda241679b094aeec65ce.tar.bz2 build-ee98faf71642cf351d5cda241679b094aeec65ce.tar.xz build-ee98faf71642cf351d5cda241679b094aeec65ce.zip  | |
Added targets, and the global set command, things are really coming along now.
Diffstat (limited to 'src/builder.cpp')
| -rw-r--r-- | src/builder.cpp | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/src/builder.cpp b/src/builder.cpp index 24e4536..e8cd6e2 100644 --- a/src/builder.cpp +++ b/src/builder.cpp  | |||
| @@ -1,12 +1,14 @@ | |||
| 1 | #include "builder.h" | 1 | #include "builder.h" | 
| 2 | #include "functionfactory.h" | 2 | #include "functionfactory.h" | 
| 3 | #include "performfactory.h" | 3 | #include "performfactory.h" | 
| 4 | #include "targetfactory.h" | ||
| 4 | 5 | ||
| 5 | subExceptionDef( BuildException ); | 6 | subExceptionDef( BuildException ); | 
| 6 | 7 | ||
| 7 | Builder::Builder() : | 8 | Builder::Builder() : | 
| 8 | fFunction( FunctionFactory::getInstance() ), | 9 | fFunction( FunctionFactory::getInstance() ), | 
| 9 | fPerform( PerformFactory::getInstance() ) | 10 | fPerform( PerformFactory::getInstance() ), | 
| 11 | fTarget( TargetFactory::getInstance() ) | ||
| 10 | { | 12 | { | 
| 11 | } | 13 | } | 
| 12 | 14 | ||
| @@ -42,11 +44,12 @@ void Builder::error( const std::string &msg ) | |||
| 42 | throw BuildException("%s", msg.c_str() ); | 44 | throw BuildException("%s", msg.c_str() ); | 
| 43 | } | 45 | } | 
| 44 | 46 | ||
| 45 | int Builder::getTargetType( const char *sType ) | 47 | // | 
| 48 | // Target functions | ||
| 49 | // | ||
| 50 | bool Builder::isTarget( const char *sType ) | ||
| 46 | { | 51 | { | 
| 47 | if( !strcmp( sType, "file" ) ) | 52 | return fTarget.hasPlugin( sType ); | 
| 48 | return 0; | ||
| 49 | return -1; | ||
| 50 | } | 53 | } | 
| 51 | 54 | ||
| 52 | // | 55 | // | 
