2022-05-10 10:06:48 +00:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
#ifndef PROJECTGENERATOR_H
|
|
|
|
#define PROJECTGENERATOR_H
|
|
|
|
|
|
|
|
#include "makefile.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class ProjectGenerator : public MakefileGenerator
|
|
|
|
{
|
|
|
|
bool addFile(QString);
|
|
|
|
bool addConfig(const QString &, bool add=true);
|
2012-09-06 10:21:38 +00:00
|
|
|
QString getWritableVar(const char *, bool fixPath=true);
|
2011-04-27 10:05:43 +00:00
|
|
|
QString fixPathToQmake(const QString &file);
|
|
|
|
protected:
|
2018-08-02 21:34:53 +00:00
|
|
|
void init() override;
|
|
|
|
bool writeMakefile(QTextStream &) override;
|
2018-06-08 19:18:11 +00:00
|
|
|
|
2019-06-05 08:47:28 +00:00
|
|
|
QString escapeFilePath(const QString &) const override { Q_ASSERT(false); return QString(); }
|
2018-06-08 19:18:11 +00:00
|
|
|
|
2011-04-27 10:05:43 +00:00
|
|
|
public:
|
2018-08-02 21:34:53 +00:00
|
|
|
bool supportsMetaBuild() override { return false; }
|
|
|
|
bool openOutput(QFile &, const QString &) const override;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // PROJECTGENERATOR_H
|