diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 00:56:51 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 00:56:51 +0000 |
commit | afd6d53eb6b3f169fa50cea360b982b60e589e6f (patch) | |
tree | 94190ab089936e681d7c08192524521e1b9322f3 /src/functiontargets.cpp | |
parent | d19ada0aa88aba1c7b439035c0028440ac860ec3 (diff) | |
download | build-afd6d53eb6b3f169fa50cea360b982b60e589e6f.tar.gz build-afd6d53eb6b3f169fa50cea360b982b60e589e6f.tar.bz2 build-afd6d53eb6b3f169fa50cea360b982b60e589e6f.tar.xz build-afd6d53eb6b3f169fa50cea360b982b60e589e6f.zip |
Added more goo, it may be good goo.
Diffstat (limited to '')
-rw-r--r-- | src/functiontargets.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/functiontargets.cpp b/src/functiontargets.cpp new file mode 100644 index 0000000..253b585 --- /dev/null +++ b/src/functiontargets.cpp | |||
@@ -0,0 +1,35 @@ | |||
1 | #include "functiontargets.h" | ||
2 | #include "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 std::string &cont, VarMap *mExtra ) | ||
30 | { | ||
31 | Function *pRet = new FunctionTargets(); | ||
32 | pRet->copyData( this, bld, cont, mExtra ); | ||
33 | return pRet; | ||
34 | } | ||
35 | |||