aboutsummaryrefslogtreecommitdiff
path: root/src/viewmake.cpp
blob: 065df838291b5cb7f026388131753087ab542fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * Copyright (C) 2007-2014 Xagasoft, All rights reserved.
 *
 * This file is part of the Xagasoft Build and is released under the
 * terms of the license contained in the file LICENSE.
 */

#include "viewmake.h"
#include "target.h"

#include <bu/plugger.h>

#include <bu/sio.h>
using namespace Bu;

PluginInterface3( pluginViewMake, make, ViewMake, View,
        "Mike Buland", 0, 1 );

ViewMake::ViewMake()
{
}

ViewMake::~ViewMake()
{
}

void ViewMake::beginAction( const Bu::String &/*sAction*/ )
{
}

void ViewMake::endAction()
{
}

void ViewMake::skipTarget( const Bu::String &/*sProfile*/,
        const Target &/*rTarget*/ )
{
}

void ViewMake::beginTarget( const Bu::String &/*sProfile*/,
        const Target &/*rTarget*/ )
{
}

void ViewMake::processTarget( const Bu::String &/*sProfile*/,
        const Target &/*rTarget*/ )
{
}

void ViewMake::endTarget()
{
}

void ViewMake::buildRequires( const Target &/*rTarget*/ )
{
}

void ViewMake::cmdStarted( const Bu::String &sCmd )
{
    sio << sCmd << sio.nl;
}

void ViewMake::cmdFinished( const Bu::String &sStdOut,
        const Bu::String &sStdErr, long /*iExit*/ )
{
    sio << sStdOut << sStdErr;
}

void ViewMake::userError( const Bu::String &sMsg )
{
    sio << "Error: " << sMsg << sio.nl;
}

void ViewMake::userWarning( const Bu::String &sMsg )
{
    sio << "Warning: " << sMsg << sio.nl;
}

void ViewMake::userNotice( const Bu::String &sMsg )
{
    sio << "Notice: " << sMsg << sio.nl;
}

void ViewMake::sysError( const Bu::String &sMsg )
{
    sio << sMsg << sio.nl;
}

void ViewMake::sysWarning( const Bu::String &sMsg )
{
    sio << sMsg << sio.nl;
}