fix a typo
[reactos.git] / reactos / tools / rbuild / backend / dependencymap / dependencymap.h
1 /*
2 * Copyright (C) 2007 Christoph von Wittich
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License along
15 * with this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17 */
18 #ifndef __DEPMAP_H__
19 #define __DEPMAP_H__
20
21 #include <fstream>
22 #include <vector>
23 #include <string>
24
25 #include "../backend.h"
26
27 class DepMapConfiguration
28 {
29 public:
30 DepMapConfiguration(const std::string &name = "");
31 virtual ~DepMapConfiguration() {}
32 std::string name;
33 };
34
35 class DepMapBackend : public Backend
36 {
37 public:
38
39 DepMapBackend(Project &project,
40 Configuration& configuration);
41 virtual ~DepMapBackend() {}
42
43 virtual void Process();
44
45 private:
46
47 FILE* m_DepMapFile;
48
49 std::vector<DepMapConfiguration*> m_configurations;
50 void _generate_depmap ( FILE* OUT );
51 void _clean_project_files ( void );
52
53 struct module_data
54 {
55 std::vector <std::string> libraries;
56 std::vector <std::string> references;
57
58 module_data()
59 {}
60 ~module_data()
61 {}
62 };
63
64 };
65
66
67 #endif // __DEPMAP_H__
68