1 | // Copyright (C) 2016 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef METAMAKEFILE_H |
5 | #define METAMAKEFILE_H |
6 | |
7 | #include <qlist.h> |
8 | #include <qstring.h> |
9 | |
10 | QT_BEGIN_NAMESPACE |
11 | |
12 | class QMakeProject; |
13 | class MakefileGenerator; |
14 | |
15 | class MetaMakefileGenerator |
16 | { |
17 | protected: |
18 | MetaMakefileGenerator(QMakeProject *p, const QString &n, bool op=true) : project(p), own_project(op), name(n) { } |
19 | QMakeProject *project; |
20 | bool own_project; |
21 | QString name; |
22 | |
23 | public: |
24 | |
25 | virtual ~MetaMakefileGenerator(); |
26 | |
27 | static MetaMakefileGenerator *createMetaGenerator(QMakeProject *proj, const QString &name, bool op=true, bool *success = nullptr); |
28 | static MakefileGenerator *createMakefileGenerator(QMakeProject *proj, bool noIO = false); |
29 | |
30 | inline QMakeProject *projectFile() const { return project; } |
31 | |
32 | virtual bool init() = 0; |
33 | virtual int type() const { return -1; } |
34 | virtual bool write() = 0; |
35 | }; |
36 | |
37 | QT_END_NAMESPACE |
38 | |
39 | #endif // METAMAKEFILE_H |
40 | |