Changeset View
Changeset View
Standalone View
Standalone View
plugins/meson/mesonjob.h
- This file was added.
1 | /* This file is part of KDevelop | ||||
---|---|---|---|---|---|
2 | Copyright 2018 Daniel Mensinger <daniel@mensinger-ka.de> | ||||
3 | | ||||
4 | This library is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU Library General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This library is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | Library General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU Library General Public License | ||||
15 | along with this library; see the file COPYING.LIB. If not, write to | ||||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
17 | Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #pragma once | ||||
21 | | ||||
22 | #include <outputview/outputexecutejob.h> | ||||
23 | | ||||
24 | namespace Meson | ||||
25 | { | ||||
26 | struct BuildDir; | ||||
27 | } | ||||
28 | | ||||
29 | namespace KDevelop | ||||
30 | { | ||||
31 | class IProject; | ||||
32 | } | ||||
33 | | ||||
34 | class MesonJob : public KDevelop::OutputExecuteJob | ||||
35 | { | ||||
36 | Q_OBJECT | ||||
37 | public: | ||||
38 | enum CommandType { CONFIGURE, RE_CONFIGURE, SET_CONFIG }; | ||||
39 | | ||||
40 | public: | ||||
41 | MesonJob(Meson::BuildDir const& buildDir, KDevelop::IProject* project, CommandType commandType, | ||||
42 | QStringList const& arguments, QObject* parent); | ||||
43 | | ||||
44 | QUrl workingDirectory() const override; | ||||
45 | | ||||
46 | private: | ||||
47 | KDevelop::IProject* m_project = nullptr; | ||||
48 | CommandType m_commandType; | ||||
49 | QStringList m_arguments; | ||||
50 | }; |