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