2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2020 Alexis Jeandet.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2023-06-13 12:44:56 +02:00
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
#pragma once
|
2020-06-26 13:59:38 +02:00
|
|
|
|
2023-03-21 19:20:55 +01:00
|
|
|
#include <projectexplorer/buildconfiguration.h>
|
2020-05-01 18:20:56 +02:00
|
|
|
|
2023-06-13 12:44:56 +02:00
|
|
|
namespace MesonProjectManager::Internal {
|
2020-05-01 18:20:56 +02:00
|
|
|
|
|
|
|
|
enum class MesonBuildType { plain, debug, debugoptimized, release, minsize, custom };
|
|
|
|
|
|
|
|
|
|
class MesonBuildSystem;
|
|
|
|
|
|
|
|
|
|
class MesonBuildConfiguration final : public ProjectExplorer::BuildConfiguration
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
2020-06-26 13:59:38 +02:00
|
|
|
MesonBuildConfiguration(ProjectExplorer::Target *target, Utils::Id id);
|
2020-05-01 18:20:56 +02:00
|
|
|
~MesonBuildConfiguration() final;
|
|
|
|
|
|
|
|
|
|
ProjectExplorer::BuildSystem *buildSystem() const final;
|
|
|
|
|
void build(const QString &target);
|
|
|
|
|
|
2021-01-02 20:14:56 +02:00
|
|
|
QStringList mesonConfigArgs();
|
|
|
|
|
|
|
|
|
|
const QString ¶meters() const;
|
|
|
|
|
void setParameters(const QString ¶ms);
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void parametersChanged();
|
2020-05-01 18:20:56 +02:00
|
|
|
|
|
|
|
|
private:
|
2023-08-23 16:53:06 +02:00
|
|
|
void toMap(Utils::Store &map) const override;
|
|
|
|
|
void fromMap(const Utils::Store &map) override;
|
2023-07-21 18:23:50 +02:00
|
|
|
|
2020-05-01 18:20:56 +02:00
|
|
|
MesonBuildType m_buildType;
|
|
|
|
|
ProjectExplorer::NamedWidget *createConfigWidget() final;
|
2020-06-12 11:18:04 +03:00
|
|
|
MesonBuildSystem *m_buildSystem = nullptr;
|
2021-01-02 20:14:56 +02:00
|
|
|
QString m_parameters;
|
2020-05-01 18:20:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class MesonBuildConfigurationFactory final : public ProjectExplorer::BuildConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
MesonBuildConfigurationFactory();
|
|
|
|
|
};
|
2020-10-29 10:20:14 +01:00
|
|
|
|
2023-06-13 12:44:56 +02:00
|
|
|
} // MesonProjectManager::Internal
|