diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-08-02 08:04:19 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-08-02 08:04:19 +0000 |
commit | 4ab0bf24ac9634a12a4a518edecae1d42fa331d9 (patch) | |
tree | 75b386895c987bd6f8575140d8c6aa48318ece96 /src/builder.h | |
parent | 062fcfb96c56ecfb69b8c3162ced65b63e863752 (diff) | |
download | build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.tar.gz build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.tar.bz2 build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.tar.xz build-4ab0bf24ac9634a12a4a518edecae1d42fa331d9.zip |
Fixed a few minor bugs and added the new viewer system, it allows you to add new
front ends that will display what build is doing in any way you want. cool!
So far we have plain and percent, verbose and make are coming, make should be
really easy, just print out the commands and nothing else.
Diffstat (limited to 'src/builder.h')
-rw-r--r-- | src/builder.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/builder.h b/src/builder.h index 296b9d7..82a82c4 100644 --- a/src/builder.h +++ b/src/builder.h | |||
@@ -16,6 +16,7 @@ class Action; | |||
16 | class Command; | 16 | class Command; |
17 | class Rule; | 17 | class Rule; |
18 | class Target; | 18 | class Target; |
19 | class Viewer; | ||
19 | 20 | ||
20 | #define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) | 21 | #define YY_DECL int yylex( YYSTYPE *yylval_param, YYLTYPE *yylloc_param, Builder &bld ) |
21 | YY_DECL; | 22 | YY_DECL; |
@@ -31,7 +32,7 @@ class Builder | |||
31 | }; | 32 | }; |
32 | 33 | ||
33 | public: | 34 | public: |
34 | Builder(); | 35 | Builder( Viewer &rView ); |
35 | virtual ~Builder(); | 36 | virtual ~Builder(); |
36 | 37 | ||
37 | void load( const char *sFN ); | 38 | void load( const char *sFN ); |
@@ -43,6 +44,10 @@ public: | |||
43 | 44 | ||
44 | std::string file; | 45 | std::string file; |
45 | 46 | ||
47 | Viewer &view() | ||
48 | { | ||
49 | return rView; | ||
50 | } | ||
46 | void add( Action *pAct ); | 51 | void add( Action *pAct ); |
47 | void add( Command *pCmd ); | 52 | void add( Command *pCmd ); |
48 | void add( Rule *pRule ); | 53 | void add( Rule *pRule ); |
@@ -145,6 +150,8 @@ private: | |||
145 | StaticString sTmp; | 150 | StaticString sTmp; |
146 | 151 | ||
147 | bool bReqRegexp; | 152 | bool bReqRegexp; |
153 | |||
154 | Viewer &rView; | ||
148 | }; | 155 | }; |
149 | 156 | ||
150 | void cleanList( std::list<std::string> &lst ); | 157 | void cleanList( std::list<std::string> &lst ); |