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 MSVC_NMAKE_H |
5 | #define MSVC_NMAKE_H |
6 | |
7 | #include "winmakefile.h" |
8 | |
9 | QT_BEGIN_NAMESPACE |
10 | |
11 | class NmakeMakefileGenerator : public Win32MakefileGenerator |
12 | { |
13 | void writeNmakeParts(QTextStream &); |
14 | bool writeMakefile(QTextStream &) override; |
15 | void writeImplicitRulesPart(QTextStream &t) override; |
16 | void writeBuildRulesPart(QTextStream &t) override; |
17 | void writeLinkCommand(QTextStream &t, const QString &extraFlags = QString(), const QString &extraInlineFileContent = QString()); |
18 | void writeResponseFileFiles(QTextStream &t, const ProStringList &files); |
19 | int msvcVersion() const; |
20 | void init() override; |
21 | static QStringList sourceFilesForImplicitRulesFilter(); |
22 | |
23 | protected: |
24 | void writeSubMakeCall(QTextStream &t, const QString &callPrefix, |
25 | const QString &makeArguments) override; |
26 | ProStringList extraSubTargetDependencies() override; |
27 | QString defaultInstall(const QString &t) override; |
28 | QStringList &findDependencies(const QString &file) override; |
29 | QString var(const ProKey &value) const override; |
30 | void suppressBuiltinRules(QTextStream &t) const override; |
31 | QString precompH, precompObj, precompPch; |
32 | QString precompObjC, precompPchC; |
33 | bool usePCH = false; |
34 | bool usePCHC = false; |
35 | }; |
36 | |
37 | QT_END_NAMESPACE |
38 | |
39 | #endif // MSVC_NMAKE_H |
40 |