Changeset View
Changeset View
Standalone View
Standalone View
buildsystem/builder.h
- This file was added.
1 | /* KDevelop go build support | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright 2017 Mikhail Ivchenko <ematirov@gmail.com> | ||||
4 | * | ||||
5 | * This program is free software; you can redistribute it and/or | ||||
6 | * modify it under the terms of the GNU General Public License | ||||
7 | * as published by the Free Software Foundation; either version 2 | ||||
8 | * of the License, or (at your option) any later version. | ||||
9 | */ | ||||
10 | #ifndef BUILDER_H | ||||
11 | #define BUILDER_H | ||||
12 | | ||||
13 | #include <project/interfaces/iprojectbuilder.h> | ||||
14 | | ||||
15 | namespace KDevelop { | ||||
16 | class ProjectBaseItem; | ||||
17 | } | ||||
18 | | ||||
19 | class GoBuilder: public QObject, public KDevelop::IProjectBuilder | ||||
20 | { | ||||
21 | Q_OBJECT | ||||
22 | Q_INTERFACES(KDevelop::IProjectBuilder) | ||||
23 | public: | ||||
24 | KJob* build(KDevelop::ProjectBaseItem *item) override; | ||||
25 | KJob* clean(KDevelop::ProjectBaseItem *item) override; | ||||
26 | KJob* install(KDevelop::ProjectBaseItem *item, const QUrl &installPath) override; | ||||
27 | | ||||
28 | private: | ||||
29 | KJob *createJobForAction(KDevelop::ProjectBaseItem *item, const QString &action) const; | ||||
30 | }; | ||||
31 | | ||||
32 | #endif // BUILDER_H | ||||
33 | |