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 MINGW_MAKE_H
5#define MINGW_MAKE_H
6
7#include "winmakefile.h"
8
9QT_BEGIN_NAMESPACE
10
11class MingwMakefileGenerator : public Win32MakefileGenerator
12{
13protected:
14 using MakefileGenerator::escapeDependencyPath;
15 QString escapeDependencyPath(const QString &path) const override;
16 ProString fixLibFlag(const ProString &lib) override;
17 bool processPrlFileBase(QString &origFile, QStringView origName,
18 QStringView fixedBase, int slashOff) override;
19 bool writeMakefile(QTextStream &) override;
20 void init() override;
21 QString installRoot() const override;
22private:
23 void writeMingwParts(QTextStream &);
24 void writeIncPart(QTextStream &t) override;
25 void writeLibsPart(QTextStream &t) override;
26 void writeObjectsPart(QTextStream &t) override;
27 void writeBuildRulesPart(QTextStream &t) override;
28 void writeRcFilePart(QTextStream &t) override;
29
30 QStringList &findDependencies(const QString &file) override;
31
32 QString preCompHeaderOut;
33
34 LibFlagType parseLibFlag(const ProString &flag, ProString *arg) override;
35
36 QString objectsLinkLine;
37 LinkerResponseFileInfo linkerResponseFile;
38};
39
40QT_END_NAMESPACE
41
42#endif // MINGW_MAKE_H
43

source code of qtbase/qmake/generators/win32/mingw_make.h