much better factory implementation - thanks art yerkes
[reactos.git] / reactos / tools / rbuild / backend / mingw / mingw.h
1 #ifndef MINGW_H
2 #define MINGW_H
3
4 #include "../backend.h"
5 #include "modulehandler.h"
6
7 class MingwModuleHandlerList : public std::vector<MingwModuleHandler*>
8 {
9 public:
10 ~MingwModuleHandlerList()
11 {
12 for ( size_t i = 0; i < size(); i++ )
13 {
14 delete (*this)[i];
15 }
16 }
17 };
18
19
20 class MingwBackend : public Backend
21 {
22 public:
23 MingwBackend ( Project& project );
24 virtual void Process ();
25 private:
26 void ProcessModule ( Module& module );
27 void GetModuleHandlers ( MingwModuleHandlerList& moduleHandlers );
28 void CreateMakefile ();
29 void CloseMakefile ();
30 void GenerateHeader ();
31 void GenerateAllTarget ();
32 FILE* fMakefile;
33 };
34
35 #endif /* MINGW_H */