aboutsummaryrefslogtreecommitdiff
path: root/src/builder.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-02 08:04:19 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-02 08:04:19 +0000
commit4ab0bf24ac9634a12a4a518edecae1d42fa331d9 (patch)
tree75b386895c987bd6f8575140d8c6aa48318ece96 /src/builder.h
parent062fcfb96c56ecfb69b8c3162ced65b63e863752 (diff)
downloadbuild-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.h9
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;
16class Command; 16class Command;
17class Rule; 17class Rule;
18class Target; 18class Target;
19class 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 )
21YY_DECL; 22YY_DECL;
@@ -31,7 +32,7 @@ class Builder
31 }; 32 };
32 33
33public: 34public:
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
150void cleanList( std::list<std::string> &lst ); 157void cleanList( std::list<std::string> &lst );