Option to disable automatic dependencies
[reactos.git] / reactos / tools / rbuild / backend / devcpp / devcpp.h
1
2 #ifndef __DEVCPP_H__
3 #define __DEVCPP_H__
4
5 #include <fstream>
6 #include <vector>
7 #include <string>
8
9 #include "../backend.h"
10
11 class FileUnit
12 {
13 public:
14 std::string filename;
15 std::string folder;
16 };
17
18 class DevCppBackend : public Backend
19 {
20 public:
21
22 DevCppBackend(Project &project,
23 Configuration& configuration);
24 virtual ~DevCppBackend() {}
25
26 virtual void Process();
27
28 private:
29
30 void ProcessModules();
31 void ProcessFile(std::string &filename);
32
33 bool CheckFolderAdded(std::string &folder);
34 void AddFolders(std::string &folder);
35
36 void OutputFolders();
37 void OutputFileUnits();
38
39 std::vector<FileUnit> m_fileUnits;
40 std::vector<std::string> m_folders;
41
42 int m_unitCount;
43
44 std::ofstream m_devFile;
45 };
46
47 #endif // __DEVCPP_H__
48