aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mesonprojectmanager/mesonprojectnodes.h
blob: 63f71ab548c77529fb9c54a8ad3a7f4e34b160fb (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
// 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/projectnodes.h>

namespace MesonProjectManager::Internal {

class MesonProjectNode : public ProjectExplorer::ProjectNode
{
public:
    MesonProjectNode(const Utils::FilePath &directory);
};

class MesonTargetNode : public ProjectExplorer::ProjectNode
{
public:
    MesonTargetNode(const Utils::FilePath &directory, const QString &name, const QString &target_type, const QStringList &filenames, bool build_by_default);

    void build() override;
    QString tooltip() const final;
    QString buildKey() const final;

private:
    QString m_name;
    QString m_target_type;
    QStringList m_filenames;
    bool m_build_by_default;
};

} // MesonProjectManager:Internal