summaryrefslogtreecommitdiff
path: root/src/plugins/haskell/haskellbuildconfiguration.h
blob: e8cbc1dbc613ec6f6b0fac84e76418fd7bbce584 (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
40
41
42
43
44
45
// Copyright (c) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <projectexplorer/buildconfiguration.h>
#include <projectexplorer/namedwidget.h>

namespace Haskell {
namespace Internal {

class HaskellBuildConfigurationFactory : public ProjectExplorer::BuildConfigurationFactory
{
public:
    HaskellBuildConfigurationFactory();
};

class HaskellBuildConfiguration : public ProjectExplorer::BuildConfiguration
{
    Q_OBJECT

public:
    HaskellBuildConfiguration(ProjectExplorer::Target *target, Utils::Id id);

    ProjectExplorer::NamedWidget *createConfigWidget() override;
    BuildType buildType() const override;
    void setBuildType(BuildType type);

private:
    BuildType m_buildType = BuildType::Release;
};

class HaskellBuildConfigurationWidget : public ProjectExplorer::NamedWidget
{
    Q_OBJECT

public:
    HaskellBuildConfigurationWidget(HaskellBuildConfiguration *bc);

private:
    HaskellBuildConfiguration *m_buildConfiguration;
};

} // namespace Internal
} // namespace Haskell