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 PROJECTGENERATOR_H
5#define PROJECTGENERATOR_H
6
7#include "makefile.h"
8
9QT_BEGIN_NAMESPACE
10
11class ProjectGenerator : public MakefileGenerator
12{
13 bool addFile(QString);
14 bool addConfig(const QString &, bool add=true);
15 QString getWritableVar(const char *, bool fixPath=true);
16 QString fixPathToQmake(const QString &file);
17protected:
18 void init() override;
19 bool writeMakefile(QTextStream &) override;
20
21 QString escapeFilePath(const QString &) const override { Q_ASSERT(false); return QString(); }
22
23public:
24 bool supportsMetaBuild() override { return false; }
25 bool openOutput(QFile &, const QString &) const override;
26};
27
28QT_END_NAMESPACE
29
30#endif // PROJECTGENERATOR_H
31

source code of qtbase/qmake/generators/projectgenerator.h