diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-23 22:09:30 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-23 22:09:30 +0000 |
commit | d2fe7edb2bfea20987a1f69935179fa5fc9f3b37 (patch) | |
tree | ee35479f264788bf43b7904f31a528699b53e955 /src/build.h | |
parent | 7a7390337e04d0163b97c1da7bdaa198bacaff72 (diff) | |
download | build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.tar.gz build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.tar.bz2 build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.tar.xz build-d2fe7edb2bfea20987a1f69935179fa5fc9f3b37.zip |
Really close...functions are doing their stuff, we have inputs, almost have rules.
Diffstat (limited to '')
-rw-r--r-- | src/build.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/build.h b/src/build.h index 00acbfc..fe71d30 100644 --- a/src/build.h +++ b/src/build.h | |||
@@ -27,6 +27,11 @@ public: | |||
27 | */ | 27 | */ |
28 | void addTarget( Target *pTarget ); | 28 | void addTarget( Target *pTarget ); |
29 | void addRequires( const std::string &who, const std::string &what ); | 29 | void addRequires( const std::string &who, const std::string &what ); |
30 | void addRule( Rule *pRule ); | ||
31 | |||
32 | 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 ); | ||
34 | std::string getVar( const std::string &cont, const std::string &var ); | ||
30 | 35 | ||
31 | void debugDump(); | 36 | void debugDump(); |
32 | 37 | ||
@@ -34,9 +39,15 @@ private: | |||
34 | typedef std::map<std::string, Target *> TargetMap; | 39 | typedef std::map<std::string, Target *> TargetMap; |
35 | typedef std::list<std::string> StringList; | 40 | typedef std::list<std::string> StringList; |
36 | typedef std::map<std::string, StringList> ReqMap; | 41 | typedef std::map<std::string, StringList> ReqMap; |
42 | typedef std::map<std::string, std::string> VarMap; | ||
43 | typedef std::map<std::string, VarMap> ContextMap; | ||
44 | typedef std::map<std::string, Rule *> RuleMap; | ||
37 | 45 | ||
38 | TargetMap mTarget; | 46 | TargetMap mTarget; |
39 | ReqMap mRequires; | 47 | ReqMap mRequires; |
48 | VarMap mVars; | ||
49 | ContextMap mContVars; | ||
50 | RuleMap mRule; | ||
40 | 51 | ||
41 | //std::map<std::string, Rule *> mRule; | 52 | //std::map<std::string, Rule *> mRule; |
42 | //Action *pActDefault; | 53 | //Action *pActDefault; |