blob: b18f92b1c63785d142d472b50ecac1ab9d4b6606 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (C) 2020 Alexis Jeandet.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include <projectexplorer/buildconfiguration.h>
namespace MesonProjectManager::Internal {
enum class MesonBuildType { plain, debug, debugoptimized, release, minsize, custom };
class MesonBuildConfiguration final : public ProjectExplorer::BuildConfiguration
{
Q_OBJECT
public:
MesonBuildConfiguration(ProjectExplorer::Target *target, Utils::Id id);
void build(const QString &target);
QStringList mesonConfigArgs();
const QString ¶meters() const;
void setParameters(const QString ¶ms);
signals:
void parametersChanged();
private:
void toMap(Utils::Store &map) const override;
void fromMap(const Utils::Store &map) override;
MesonBuildType m_buildType;
QWidget *createConfigWidget() final;
QString m_parameters;
};
void setupMesonBuildConfiguration();
} // MesonProjectManager::Internal
|