aboutsummaryrefslogtreecommitdiff
path: root/src/build.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/build.h')
-rw-r--r--src/build.h24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/build.h b/src/build.h
index 080304b..31c8bde 100644
--- a/src/build.h
+++ b/src/build.h
@@ -14,6 +14,15 @@
14 14
15subExceptionDecl( BuildException ); 15subExceptionDecl( BuildException );
16typedef std::map<std::string, std::string> VarMap; 16typedef std::map<std::string, std::string> VarMap;
17typedef std::map<std::string, Target *> TargetMap;
18typedef std::list<std::string> StringList;
19typedef std::map<std::string, StringList> ReqMap;
20typedef std::map<std::string, VarMap> ContextMap;
21typedef std::map<std::string, Rule *> RuleMap;
22typedef std::list<Rule *> RuleList;
23typedef std::map<std::string, Action *> ActionMap;
24
25class Viewer;
17 26
18class Build 27class Build
19{ 28{
@@ -44,15 +53,15 @@ public:
44 53
45 void setStringProc( StringProc *pStrProc ); 54 void setStringProc( StringProc *pStrProc );
46 std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra ); 55 std::string replVars( const std::string &sSrc, const std::string &sCont, VarMap *mExtra );
56 RuleList findChainRules( Rule *pHead );
57 StringList &getRequires( std::string sName );
47 58
48private: 59 Viewer *getView()
49 typedef std::map<std::string, Target *> TargetMap; 60 {
50 typedef std::list<std::string> StringList; 61 return pView;
51 typedef std::map<std::string, StringList> ReqMap; 62 }
52 typedef std::map<std::string, VarMap> ContextMap;
53 typedef std::map<std::string, Rule *> RuleMap;
54 typedef std::map<std::string, Action *> ActionMap;
55 63
64private:
56 TargetMap mTarget; 65 TargetMap mTarget;
57 ReqMap mRequires; 66 ReqMap mRequires;
58 VarMap mVars; 67 VarMap mVars;
@@ -60,6 +69,7 @@ private:
60 RuleMap mRule; 69 RuleMap mRule;
61 ActionMap mAction; 70 ActionMap mAction;
62 StringProc *pStrProc; 71 StringProc *pStrProc;
72 Viewer *pView;
63 73
64 //std::map<std::string, Rule *> mRule; 74 //std::map<std::string, Rule *> mRule;
65 //Action *pActDefault; 75 //Action *pActDefault;