diff options
Diffstat (limited to 'src/functiontargets.cpp')
-rw-r--r-- | src/functiontargets.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/functiontargets.cpp b/src/functiontargets.cpp deleted file mode 100644 index a94f43e..0000000 --- a/src/functiontargets.cpp +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | #include "functiontargets.h" | ||
2 | #include "bu/plugger.h" | ||
3 | #include "build.h" | ||
4 | |||
5 | PluginInterface2(targets, FunctionTargets, Function, "Mike Buland", 0, 1 ); | ||
6 | |||
7 | FunctionTargets::FunctionTargets() | ||
8 | { | ||
9 | } | ||
10 | |||
11 | FunctionTargets::~FunctionTargets() | ||
12 | { | ||
13 | } | ||
14 | |||
15 | void FunctionTargets::execute( Build *bld, const StringList &lInput, StringList &lOutput ) | ||
16 | { | ||
17 | if( bld == NULL ) | ||
18 | { | ||
19 | throw BuildException("You cannot call targets() from anywhere, see the manual."); | ||
20 | } | ||
21 | |||
22 | for( TargetMap::iterator i = bld->getTargetMap().begin(); | ||
23 | i != bld->getTargetMap().end(); i++ ) | ||
24 | { | ||
25 | lOutput.push_back( (*i).first ); | ||
26 | } | ||
27 | } | ||
28 | |||
29 | Function *FunctionTargets::duplicate( Build &bld, const StringList *cont, VarMap *mExtra ) | ||
30 | { | ||
31 | Function *pRet = new FunctionTargets(); | ||
32 | pRet->copyData( this, bld, cont, mExtra ); | ||
33 | return pRet; | ||
34 | } | ||
35 | |||