aboutsummaryrefslogtreecommitdiff
path: root/src/perform.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-20 18:56:49 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-20 18:56:49 +0000
commit85539c8c262c0c9e227c87fd1de02c53c163b7d8 (patch)
treeb6f96899ca745c157a6de93ad27013416976fc06 /src/perform.h
parent5a32418a040e967887aa6e01e41abc22932471db (diff)
downloadbuild-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.h5
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
9typedef std::map<std::string,std::string> VarMap; 9typedef std::map<std::string,std::string> VarMap;
10typedef std::list<std::string> StringList;
10 11
11class Build; 12class 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;