From 4ab0bf24ac9634a12a4a518edecae1d42fa331d9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 2 Aug 2006 08:04:19 +0000 Subject: 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. --- src/viewerplain.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 src/viewerplain.cpp (limited to 'src/viewerplain.cpp') 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 @@ +#include +#include "viewerplain.h" +#include "perform.h" + +ViewerPlain::ViewerPlain() +{ +} + +ViewerPlain::~ViewerPlain() +{ +} + +void ViewerPlain::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms ) +{ + printf("--- %s ---\n", sName ); +} + +void ViewerPlain::endTarget() +{ + printf("\n"); +} + +void ViewerPlain::beginPerform( Perform *pPerf ) +{ + sTarget = pPerf->getTarget(); + printf(" check: %s\n", sTarget.getString() ); +} + +void ViewerPlain::beginExecute() +{ + printf(" build: %s\n", sTarget.getString() ); +} + -- cgit v1.2.3