aboutsummaryrefslogtreecommitdiff
path: root/src/perform.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-12 00:22:33 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-12 00:22:33 +0000
commitd19ada0aa88aba1c7b439035c0028440ac860ec3 (patch)
treefb8cde98650aa66fcdb736b045f541eac1b8b93a /src/perform.h
parent97d529fac68105f0d3d34c699a4ac10489c705e8 (diff)
downloadbuild-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.gz
build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.bz2
build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.xz
build-d19ada0aa88aba1c7b439035c0028440ac860ec3.zip
Build now builds, it has viewers, and dependancy checking, and everything works.
Now we have to add cleaning, caching, and more viewer hooks / viewers.
Diffstat (limited to '')
-rw-r--r--src/perform.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/perform.h b/src/perform.h
index 93c8b9a..ea8d5e3 100644
--- a/src/perform.h
+++ b/src/perform.h
@@ -17,7 +17,8 @@ public:
17 virtual ~Perform(); 17 virtual ~Perform();
18 18
19 void addParam( const char *sParam ); 19 void addParam( const char *sParam );
20 virtual Perform *duplicate( Build &bld, const std::string &cont ) = 0; 20 virtual Perform *duplicate( Build &bld, const std::string &cont, VarMap *mExtra ) = 0;
21 virtual void execute( Build &bld ) = 0;
21 void copyData( Perform *pSrc, Build &bld, const std::string &cont, VarMap *mExtra ); 22 void copyData( Perform *pSrc, Build &bld, const std::string &cont, VarMap *mExtra );
22 std::string getTarget() 23 std::string getTarget()
23 { 24 {
@@ -28,9 +29,26 @@ public:
28 this->sTarget = sTarget; 29 this->sTarget = sTarget;
29 } 30 }
30 31
31private: 32 std::list<class Function *> &getReqFuncs()
33 {
34 return lReqFuncs;
35 }
36
37 void setRule( const std::string &sRule )
38 {
39 this->sRule = sRule;
40 }
41
42 std::string &getRule()
43 {
44 return sRule;
45 }
46
47protected:
32 std::list<std::string> lParam; 48 std::list<std::string> lParam;
33 std::string sTarget; 49 std::string sTarget;
50 std::string sRule;
51 std::list<class Function *> lReqFuncs;
34}; 52};
35 53
36#endif 54#endif