diff options
Diffstat (limited to 'src/build.h')
-rw-r--r-- | src/build.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/build.h b/src/build.h index fe71d30..77e40fa 100644 --- a/src/build.h +++ b/src/build.h | |||
@@ -19,6 +19,8 @@ public: | |||
19 | Build(); | 19 | Build(); |
20 | virtual ~Build(); | 20 | virtual ~Build(); |
21 | 21 | ||
22 | void execAction( const std::string &sWhat ); | ||
23 | |||
22 | /** | 24 | /** |
23 | * Adds a target to the build. If the target already exists, this will | 25 | * Adds a target to the build. If the target already exists, this will |
24 | * attempt to merge them as best it can. If there are any conflicts, it | 26 | * attempt to merge them as best it can. If there are any conflicts, it |
@@ -28,6 +30,7 @@ public: | |||
28 | void addTarget( Target *pTarget ); | 30 | void addTarget( Target *pTarget ); |
29 | void addRequires( const std::string &who, const std::string &what ); | 31 | void addRequires( const std::string &who, const std::string &what ); |
30 | void addRule( Rule *pRule ); | 32 | void addRule( Rule *pRule ); |
33 | void addAction( Action *pAction ); | ||
31 | 34 | ||
32 | void set( const std::string &cont, const std::string &var, const std::string &val ); | 35 | void set( const std::string &cont, const std::string &var, const std::string &val ); |
33 | void setAdd( const std::string &cont, const std::string &var, const std::string &val ); | 36 | void setAdd( const std::string &cont, const std::string &var, const std::string &val ); |
@@ -42,12 +45,14 @@ private: | |||
42 | typedef std::map<std::string, std::string> VarMap; | 45 | typedef std::map<std::string, std::string> VarMap; |
43 | typedef std::map<std::string, VarMap> ContextMap; | 46 | typedef std::map<std::string, VarMap> ContextMap; |
44 | typedef std::map<std::string, Rule *> RuleMap; | 47 | typedef std::map<std::string, Rule *> RuleMap; |
48 | typedef std::map<std::string, Action *> ActionMap; | ||
45 | 49 | ||
46 | TargetMap mTarget; | 50 | TargetMap mTarget; |
47 | ReqMap mRequires; | 51 | ReqMap mRequires; |
48 | VarMap mVars; | 52 | VarMap mVars; |
49 | ContextMap mContVars; | 53 | ContextMap mContVars; |
50 | RuleMap mRule; | 54 | RuleMap mRule; |
55 | ActionMap mAction; | ||
51 | 56 | ||
52 | //std::map<std::string, Rule *> mRule; | 57 | //std::map<std::string, Rule *> mRule; |
53 | //Action *pActDefault; | 58 | //Action *pActDefault; |