1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef CMAKEBUILDERGENERATOR_H
6#define CMAKEBUILDERGENERATOR_H
7
8#include "services/builder/buildergenerator.h"
9#include "services/project/projectinfo.h"
10
11#include <QObject>
12
13class CMakeBuilderGeneratorPrivate;
14class CMakeBuilderGenerator : public dpfservice::BuilderGenerator
15{
16 Q_OBJECT
17 CMakeBuilderGeneratorPrivate *const d;
18public:
19 explicit CMakeBuilderGenerator();
20 virtual ~CMakeBuilderGenerator() override;
21
22 static QString toolKitName() { return "cmake"; }
23
24 BuildCommandInfo getMenuCommand(const BuildMenuType buildMenuType, const dpfservice::ProjectInfo &projectInfo) override;
25 void appendOutputParser(std::unique_ptr<IOutputParser>& outputParser) override;
26 bool checkCommandValidity(const BuildCommandInfo &info, QString &retMsg) override;
27
28signals:
29
30private slots:
31
32private:
33};
34
35#endif // CMAKEBUILDERGENERATOR_H
36