diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-04-24 14:09:50 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-04-24 14:09:50 +0000 |
commit | ff938b977db21378a1f016f65e7345c50e71ef8f (patch) | |
tree | 0f05b9b5b5ea13ce234cdd27e1eb8ccbccb2dc51 /src/build.h | |
parent | be41caa5ca6756c7809cabaf6d8bee321928c45a (diff) | |
download | build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.gz build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.bz2 build-ff938b977db21378a1f016f65e7345c50e71ef8f.tar.xz build-ff938b977db21378a1f016f65e7345c50e71ef8f.zip |
Half way there on the road to implementing basic group functionality. You can
create groups, you can't do anything with them yet (although the syntax is
supported already.)
Diffstat (limited to '')
-rw-r--r-- | src/build.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/build.h b/src/build.h index dd8c11b..768d211 100644 --- a/src/build.h +++ b/src/build.h | |||
@@ -22,6 +22,8 @@ typedef std::map<std::string, VarMap> ContextMap; | |||
22 | typedef std::map<std::string, Rule *> RuleMap; | 22 | typedef std::map<std::string, Rule *> RuleMap; |
23 | typedef std::list<Rule *> RuleList; | 23 | typedef std::list<Rule *> RuleList; |
24 | typedef std::map<std::string, Action *> ActionMap; | 24 | typedef std::map<std::string, Action *> ActionMap; |
25 | typedef std::list<Target *> TargetList; | ||
26 | typedef std::map<std::string, TargetList> GroupMap; | ||
25 | 27 | ||
26 | class Viewer; | 28 | class Viewer; |
27 | 29 | ||
@@ -43,6 +45,7 @@ public: | |||
43 | void addRequires( const std::string &who, const std::string &what ); | 45 | void addRequires( const std::string &who, const std::string &what ); |
44 | void addRule( Rule *pRule ); | 46 | void addRule( Rule *pRule ); |
45 | void addAction( Action *pAction ); | 47 | void addAction( Action *pAction ); |
48 | void addToGroup( const std::string &sGroup, Target *pTarget ); | ||
46 | 49 | ||
47 | void set( const std::string &cont, const std::string &var, const std::string &val ); | 50 | void set( const std::string &cont, const std::string &var, const std::string &val ); |
48 | void setAdd( const std::string &cont, const std::string &var, const std::string &val ); | 51 | void setAdd( const std::string &cont, const std::string &var, const std::string &val ); |
@@ -92,6 +95,7 @@ private: | |||
92 | Cache cRequires; | 95 | Cache cRequires; |
93 | bool bCacheUpdated; | 96 | bool bCacheUpdated; |
94 | std::string sCacheName; | 97 | std::string sCacheName; |
98 | GroupMap mGroup; | ||
95 | 99 | ||
96 | //std::map<std::string, Rule *> mRule; | 100 | //std::map<std::string, Rule *> mRule; |
97 | //Action *pActDefault; | 101 | //Action *pActDefault; |