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 WINMAKEFILE_H
5#define WINMAKEFILE_H
6
7#include "makefile.h"
8
9QT_BEGIN_NAMESPACE
10
11class Win32MakefileGenerator : public MakefileGenerator
12{
13protected:
14 QString defaultInstall(const QString &) override;
15 void writeDefaultVariables(QTextStream &t) override;
16 virtual void writeCleanParts(QTextStream &t);
17 virtual void writeStandardParts(QTextStream &t);
18 virtual void writeIncPart(QTextStream &t);
19 virtual void writeLibsPart(QTextStream &t);
20 virtual void writeObjectsPart(QTextStream &t);
21 virtual void writeImplicitRulesPart(QTextStream &t);
22 virtual void writeBuildRulesPart(QTextStream &);
23 using MakefileGenerator::escapeFilePath;
24 QString escapeFilePath(const QString &path) const override;
25 using MakefileGenerator::escapeDependencyPath;
26 QString escapeDependencyPath(const QString &path) const override;
27
28 virtual void writeRcFilePart(QTextStream &t);
29
30 bool findLibraries(bool linkPrl, bool mergeLflags) override;
31
32 LibFlagType parseLibFlag(const ProString &flag, ProString *arg) override;
33 ProString fixLibFlag(const ProString &lib) override;
34 bool processPrlFileBase(QString &origFile, QStringView origName,
35 QStringView fixedBase, int slashOff) override;
36
37 void processVars();
38 void fixTargetExt();
39 void processRcFileVar();
40 static QString cQuoted(const QString &str);
41
42public:
43 ProKey fullTargetVariable() const override;
44};
45
46QT_END_NAMESPACE
47
48#endif // WINMAKEFILE_H
49

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