diff options
Diffstat (limited to 'src/viewmake.cpp')
-rw-r--r-- | src/viewmake.cpp | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/src/viewmake.cpp b/src/viewmake.cpp new file mode 100644 index 0000000..39d1327 --- /dev/null +++ b/src/viewmake.cpp | |||
@@ -0,0 +1,86 @@ | |||
1 | #include "viewmake.h" | ||
2 | #include "target.h" | ||
3 | |||
4 | #include <bu/plugger.h> | ||
5 | |||
6 | #include <bu/sio.h> | ||
7 | using namespace Bu; | ||
8 | |||
9 | PluginInterface3( pluginViewMake, make, ViewMake, View, | ||
10 | "Mike Buland", 0, 1 ); | ||
11 | |||
12 | ViewMake::ViewMake() | ||
13 | { | ||
14 | } | ||
15 | |||
16 | ViewMake::~ViewMake() | ||
17 | { | ||
18 | } | ||
19 | |||
20 | void ViewMake::beginAction( const Bu::FString &/*sAction*/ ) | ||
21 | { | ||
22 | } | ||
23 | |||
24 | void ViewMake::endAction() | ||
25 | { | ||
26 | } | ||
27 | |||
28 | void ViewMake::skipTarget( const Bu::FString &/*sProfile*/, | ||
29 | const Target &/*rTarget*/ ) | ||
30 | { | ||
31 | } | ||
32 | |||
33 | void ViewMake::beginTarget( const Bu::FString &/*sProfile*/, | ||
34 | const Target &/*rTarget*/ ) | ||
35 | { | ||
36 | } | ||
37 | |||
38 | void ViewMake::processTarget( const Bu::FString &/*sProfile*/, | ||
39 | const Target &/*rTarget*/ ) | ||
40 | { | ||
41 | } | ||
42 | |||
43 | void ViewMake::endTarget() | ||
44 | { | ||
45 | } | ||
46 | |||
47 | void ViewMake::buildRequires( const Target &/*rTarget*/ ) | ||
48 | { | ||
49 | } | ||
50 | |||
51 | void ViewMake::cmdStarted( const Bu::FString &sCmd ) | ||
52 | { | ||
53 | sio << sCmd << sio.nl; | ||
54 | } | ||
55 | |||
56 | void ViewMake::cmdFinished( const Bu::FString &sStdOut, | ||
57 | const Bu::FString &sStdErr, long /*iExit*/ ) | ||
58 | { | ||
59 | sio << sStdOut << sStdErr; | ||
60 | } | ||
61 | |||
62 | void ViewMake::userError( const Bu::FString &sMsg ) | ||
63 | { | ||
64 | sio << "Error: " << sMsg << sio.nl; | ||
65 | } | ||
66 | |||
67 | void ViewMake::userWarning( const Bu::FString &sMsg ) | ||
68 | { | ||
69 | sio << "Warning: " << sMsg << sio.nl; | ||
70 | } | ||
71 | |||
72 | void ViewMake::userNotice( const Bu::FString &sMsg ) | ||
73 | { | ||
74 | sio << "Notice: " << sMsg << sio.nl; | ||
75 | } | ||
76 | |||
77 | void ViewMake::sysError( const Bu::FString &sMsg ) | ||
78 | { | ||
79 | sio << sMsg << sio.nl; | ||
80 | } | ||
81 | |||
82 | void ViewMake::sysWarning( const Bu::FString &sMsg ) | ||
83 | { | ||
84 | sio << sMsg << sio.nl; | ||
85 | } | ||
86 | |||