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 PBUILDER_PBX_H
|
|
|
|
#define PBUILDER_PBX_H
|
|
|
|
|
|
|
|
#include "unixmake.h"
|
|
|
|
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
class ProjectBuilderMakefileGenerator : public UnixMakefileGenerator
|
|
|
|
{
|
|
|
|
bool writingUnixMakefileGenerator;
|
2018-07-17 13:11:07 +00:00
|
|
|
mutable QString pbx_dir;
|
2011-04-27 10:05:43 +00:00
|
|
|
int pbuilderVersion() const;
|
|
|
|
bool writeSubDirs(QTextStream &);
|
|
|
|
bool writeMakeParts(QTextStream &);
|
2018-08-02 21:34:53 +00:00
|
|
|
bool writeMakefile(QTextStream &) override;
|
2019-08-26 13:21:03 +00:00
|
|
|
bool replaceLibrarySuffix(const QString &lib_file, const ProString &opt, QString &name,
|
|
|
|
QString &library);
|
2011-04-27 10:05:43 +00:00
|
|
|
|
|
|
|
QString pbxbuild();
|
2012-01-09 18:25:44 +00:00
|
|
|
QHash<QString, QString> keys;
|
2011-04-27 10:05:43 +00:00
|
|
|
QString keyFor(const QString &file);
|
2012-09-06 10:21:38 +00:00
|
|
|
QString findProgram(const ProString &prog);
|
2011-04-27 10:05:43 +00:00
|
|
|
QString fixForOutput(const QString &file);
|
2012-09-06 10:21:38 +00:00
|
|
|
ProStringList fixListForOutput(const char *where);
|
2013-07-02 10:05:48 +00:00
|
|
|
ProStringList fixListForOutput(const ProStringList &list);
|
2011-04-27 10:05:43 +00:00
|
|
|
int reftypeForFile(const QString &where);
|
|
|
|
QString projectSuffix() const;
|
|
|
|
enum { SettingsAsList=0x01, SettingsNoQuote=0x02 };
|
2012-09-06 10:21:38 +00:00
|
|
|
inline QString writeSettings(const QString &var, const char *val, int flags=0, int indent_level=0)
|
|
|
|
{ return writeSettings(var, ProString(val), flags, indent_level); }
|
|
|
|
inline QString writeSettings(const QString &var, const ProString &val, int flags=0, int indent_level=0)
|
|
|
|
{ return writeSettings(var, ProStringList(val), flags, indent_level); }
|
|
|
|
QString writeSettings(const QString &var, const ProStringList &vals, int flags=0, int indent_level=0);
|
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
|
|
|
protected:
|
2018-08-02 21:34:53 +00:00
|
|
|
bool doPrecompiledHeaders() const override { return false; }
|
|
|
|
bool doDepends() const override { return writingUnixMakefileGenerator && UnixMakefileGenerator::doDepends(); }
|
2021-09-10 08:01:31 +00:00
|
|
|
bool inhibitMakeDirOutPath(const ProKey &path) const override;
|
2011-04-27 10:05:43 +00:00
|
|
|
};
|
|
|
|
QT_END_NAMESPACE
|
|
|
|
|
|
|
|
#endif // PBUILDER_PBX_H
|