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/viewerplain.cpp | |
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 '')
-rw-r--r-- | src/viewerplain.cpp | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/viewerplain.cpp b/src/viewerplain.cpp new file mode 100644 index 0000000..edc5ba8 --- /dev/null +++ b/src/viewerplain.cpp | |||
@@ -0,0 +1,33 @@ | |||
1 | #include <stdio.h> | ||
2 | #include "viewerplain.h" | ||
3 | #include "perform.h" | ||
4 | |||
5 | ViewerPlain::ViewerPlain() | ||
6 | { | ||
7 | } | ||
8 | |||
9 | ViewerPlain::~ViewerPlain() | ||
10 | { | ||
11 | } | ||
12 | |||
13 | void ViewerPlain::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ) | ||
14 | { | ||
15 | printf("--- %s ---\n", sName ); | ||
16 | } | ||
17 | |||
18 | void ViewerPlain::endTarget() | ||
19 | { | ||
20 | printf("\n"); | ||
21 | } | ||
22 | |||
23 | void ViewerPlain::beginPerform( Perform *pPerf ) | ||
24 | { | ||
25 | sTarget = pPerf->getTarget(); | ||
26 | printf(" check: %s\n", sTarget.getString() ); | ||
27 | } | ||
28 | |||
29 | void ViewerPlain::beginExecute() | ||
30 | { | ||
31 | printf(" build: %s\n", sTarget.getString() ); | ||
32 | } | ||
33 | |||