diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-20 18:56:49 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-20 18:56:49 +0000 |
commit | 85539c8c262c0c9e227c87fd1de02c53c163b7d8 (patch) | |
tree | b6f96899ca745c157a6de93ad27013416976fc06 /src/perform.h | |
parent | 5a32418a040e967887aa6e01e41abc22932471db (diff) | |
download | build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.gz build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.bz2 build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.tar.xz build-85539c8c262c0c9e227c87fd1de02c53c163b7d8.zip |
Changed the api for variable replacement contexts. There can now be multiple
levels of contextual inheritance, so now sub-targets automatically get their
parent target's context variables, if they need them.
Diffstat (limited to '')
-rw-r--r-- | src/perform.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/perform.h b/src/perform.h index ea8d5e3..031e007 100644 --- a/src/perform.h +++ b/src/perform.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <map> | 7 | #include <map> |
8 | 8 | ||
9 | typedef std::map<std::string,std::string> VarMap; | 9 | typedef std::map<std::string,std::string> VarMap; |
10 | typedef std::list<std::string> StringList; | ||
10 | 11 | ||
11 | class Build; | 12 | class Build; |
12 | 13 | ||
@@ -17,9 +18,9 @@ public: | |||
17 | virtual ~Perform(); | 18 | virtual ~Perform(); |
18 | 19 | ||
19 | void addParam( const char *sParam ); | 20 | void addParam( const char *sParam ); |
20 | virtual Perform *duplicate( Build &bld, const std::string &cont, VarMap *mExtra ) = 0; | 21 | virtual Perform *duplicate( Build &bld, const StringList *cont, VarMap *mExtra ) = 0; |
21 | virtual void execute( Build &bld ) = 0; | 22 | virtual void execute( Build &bld ) = 0; |
22 | void copyData( Perform *pSrc, Build &bld, const std::string &cont, VarMap *mExtra ); | 23 | void copyData( Perform *pSrc, Build &bld, const StringList *cont, VarMap *mExtra ); |
23 | std::string getTarget() | 24 | std::string getTarget() |
24 | { | 25 | { |
25 | return sTarget; | 26 | return sTarget; |