aboutsummaryrefslogtreecommitdiff
path: root/src/target.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-08 22:58:28 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-08 22:58:28 +0000
commit52be1ef0d126f09ba943c7afcf367e7d9347f2fd (patch)
treefd4b0dd148751c3c6c1b95296c3b82cb86051b83 /src/target.h
parent795d0737fed40d88a7801b451b7750ba90802345 (diff)
downloadbuild-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.tar.gz
build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.tar.bz2
build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.tar.xz
build-52be1ef0d126f09ba943c7afcf367e7d9347f2fd.zip
tabconv: it's all spaces now.
Diffstat (limited to '')
-rw-r--r--src/target.h116
1 files changed, 58 insertions, 58 deletions
diff --git a/src/target.h b/src/target.h
index b325682..e7645dc 100644
--- a/src/target.h
+++ b/src/target.h
@@ -6,90 +6,90 @@
6 6
7class Target 7class Target
8{ 8{
9 friend Bu::Formatter &operator<<( Bu::Formatter &f, const Target &t ); 9 friend Bu::Formatter &operator<<( Bu::Formatter &f, const Target &t );
10public: 10public:
11 Target( bool bExplicit ); 11 Target( bool bExplicit );
12 Target( const Bu::String &sOutput, bool bExplicit ); 12 Target( const Bu::String &sOutput, bool bExplicit );
13 virtual ~Target(); 13 virtual ~Target();
14 14
15 void addInput( const Bu::String &sInput ); 15 void addInput( const Bu::String &sInput );
16 const StrList &getInputList() const; 16 const StrList &getInputList() const;
17 void resetInputList( const StrList &lInputs ); 17 void resetInputList( const StrList &lInputs );
18 18
19 void addRequires( const Bu::String &sReq ); 19 void addRequires( const Bu::String &sReq );
20 void addRequires( const AstBranch *pBr ); 20 void addRequires( const AstBranch *pBr );
21 const StrList &getRequiresList() const; 21 const StrList &getRequiresList() const;
22 /** 22 /**
23 * This function will get the cached requires if they exist, build them 23 * This function will get the cached requires if they exist, build them
24 * if they don't. Use this is conditions, but use buildRequires to force 24 * if they don't. Use this is conditions, but use buildRequires to force
25 * a rebuild even if cached data exists. 25 * a rebuild even if cached data exists.
26 */ 26 */
27 void gatherRequires( class Runner &r ); 27 void gatherRequires( class Runner &r );
28 void buildRequires( class Runner &r ); 28 void buildRequires( class Runner &r );
29 29
30 void addOutput( const Bu::String &sOutput ); 30 void addOutput( const Bu::String &sOutput );
31 const StrList &getOutputList() const; 31 const StrList &getOutputList() const;
32 32
33 void setPrefix( const Bu::String &sPrefix ); 33 void setPrefix( const Bu::String &sPrefix );
34 const Bu::String &getPrefix() const; 34 const Bu::String &getPrefix() const;
35 35
36 void setRule( const Bu::String &sRule ); 36 void setRule( const Bu::String &sRule );
37 const Bu::String &getRule() const; 37 const Bu::String &getRule() const;
38 bool hasRule() const; 38 bool hasRule() const;
39 39
40 bool isExplicit() const; 40 bool isExplicit() const;
41 41
42 void addDep( Target *pDep ); 42 void addDep( Target *pDep );
43 const TargetList &getDepList() const; 43 const TargetList &getDepList() const;
44 44
45 void addProfile( const class AstBranch *pProfRoot ); 45 void addProfile( const class AstBranch *pProfRoot );
46 void addProfile( const class Profile *pSrc ); 46 void addProfile( const class Profile *pSrc );
47 bool hasProfile( const Bu::String &sName ) const; 47 bool hasProfile( const Bu::String &sName ) const;
48 const class Profile *getProfile( const Bu::String &sName ) const; 48 const class Profile *getProfile( const Bu::String &sName ) const;
49 49
50 void setVars( const VarHash &hNewVars ); 50 void setVars( const VarHash &hNewVars );
51 const VarHash &getVars() const; 51 const VarHash &getVars() const;
52 52
53 void setDisplay( const Bu::String &sNewDisplay ); 53 void setDisplay( const Bu::String &sNewDisplay );
54 const Bu::String &getDisplay() const; 54 const Bu::String &getDisplay() const;
55 55
56 void process( class Runner &r, const Bu::String &sProfile ); 56 void process( class Runner &r, const Bu::String &sProfile );
57 57
58 void mergeUnder( const Target *pSrc ); 58 void mergeUnder( const Target *pSrc );
59 59
60 bool hasRun(); 60 bool hasRun();
61 61
62 void resetRun( bool bHasRun=true ); 62 void resetRun( bool bHasRun=true );
63 void setDepCount(); 63 void setDepCount();
64 int getDepCount() const; 64 int getDepCount() const;
65 65
66 void collapseDeps(); 66 void collapseDeps();
67 67
68private: 68private:
69 void mergeUnder( const VarHash &hVars ); 69 void mergeUnder( const VarHash &hVars );
70 void merge( StrList &lOut, const StrList &lIn ); 70 void merge( StrList &lOut, const StrList &lIn );
71 71
72private: 72private:
73 bool bExplicit; 73 bool bExplicit;
74 StrList lsInput; 74 StrList lsInput;
75 StrList lsRequires; 75 StrList lsRequires;
76 StrList lsOutput; 76 StrList lsOutput;
77 Bu::String sPrefix; 77 Bu::String sPrefix;
78 Bu::String sRule; 78 Bu::String sRule;
79 VarHash hVars; 79 VarHash hVars;
80 TargetList lDeps; 80 TargetList lDeps;
81 ProfileHash hProfiles; 81 ProfileHash hProfiles;
82 Bu::String sDisplay; 82 Bu::String sDisplay;
83 bool bRun; 83 bool bRun;
84 AstBranchList lbRequires; 84 AstBranchList lbRequires;
85 int iDepCount; 85 int iDepCount;
86}; 86};
87 87
88Bu::Formatter &operator<<( Bu::Formatter &f, const Target &t ); 88Bu::Formatter &operator<<( Bu::Formatter &f, const Target &t );
89 89
90namespace Bu 90namespace Bu
91{ 91{
92 template<> Bu::Formatter &operator<< <Target>( Bu::Formatter &f, const Target *t ); 92 template<> Bu::Formatter &operator<< <Target>( Bu::Formatter &f, const Target *t );
93}; 93};
94 94
95#endif 95#endif