2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2008-12-02 12:01:29 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2008-12-02 14:17:16 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2010-12-17 16:01:08 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2008-12-02 14:09:21 +01:00
|
|
|
|
2016-01-27 10:14:00 +01:00
|
|
|
#pragma once
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2015-03-10 14:24:14 +01:00
|
|
|
#include "cmake_global.h"
|
2017-10-18 13:05:44 +02:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
#include <projectexplorer/project.h>
|
|
|
|
|
|
|
|
|
|
namespace CMakeProjectManager {
|
|
|
|
|
|
2020-04-17 15:30:05 +02:00
|
|
|
namespace Internal {
|
|
|
|
|
class CMakeProjectImporter;
|
2021-01-14 16:38:55 +01:00
|
|
|
class CMakeBuildSystem;
|
2020-04-17 15:30:05 +02:00
|
|
|
}
|
|
|
|
|
|
2020-01-29 04:15:25 +03:00
|
|
|
class CMAKE_EXPORT CMakeProject final : public ProjectExplorer::Project
|
2008-12-02 12:01:29 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
2016-11-07 18:20:47 +01:00
|
|
|
|
2008-12-02 12:01:29 +01:00
|
|
|
public:
|
2019-05-28 13:49:26 +02:00
|
|
|
explicit CMakeProject(const Utils::FilePath &filename);
|
2016-09-30 14:11:10 +02:00
|
|
|
~CMakeProject() final;
|
2008-12-02 12:01:29 +01:00
|
|
|
|
2019-05-27 16:09:44 +02:00
|
|
|
ProjectExplorer::Tasks projectIssues(const ProjectExplorer::Kit *k) const final;
|
2016-01-06 15:51:44 +01:00
|
|
|
|
2016-08-25 14:33:44 +02:00
|
|
|
ProjectExplorer::ProjectImporter *projectImporter() const final;
|
|
|
|
|
|
2021-09-21 22:22:37 +02:00
|
|
|
using IssueType = ProjectExplorer::Task::TaskType;
|
|
|
|
|
void addIssue(IssueType type, const QString &text);
|
|
|
|
|
void clearIssues();
|
|
|
|
|
|
2009-03-26 17:36:58 +01:00
|
|
|
protected:
|
2016-09-30 14:11:10 +02:00
|
|
|
bool setupTarget(ProjectExplorer::Target *t) final;
|
2009-03-26 17:36:58 +01:00
|
|
|
|
2016-01-07 15:22:53 +01:00
|
|
|
private:
|
2019-04-12 14:49:59 +02:00
|
|
|
ProjectExplorer::DeploymentKnowledge deploymentKnowledge() const override;
|
|
|
|
|
ProjectExplorer::MakeInstallCommand makeInstallCommand(const ProjectExplorer::Target *target,
|
|
|
|
|
const QString &installRoot) override;
|
|
|
|
|
|
2020-04-17 15:30:05 +02:00
|
|
|
mutable Internal::CMakeProjectImporter *m_projectImporter = nullptr;
|
2016-12-04 03:36:12 +10:00
|
|
|
|
2021-01-14 16:38:55 +01:00
|
|
|
friend class Internal::CMakeBuildSystem;
|
2021-09-21 22:22:37 +02:00
|
|
|
|
|
|
|
|
ProjectExplorer::Tasks m_issues;
|
2008-12-02 12:01:29 +01:00
|
|
|
};
|
|
|
|
|
|
2008-12-02 14:09:21 +01:00
|
|
|
} // namespace CMakeProjectManager
|