aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmlprojectmanager/mcubuildstep.h
blob: 988284a8905f20a3c9d01259064b397be8ea593e (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
#pragma once

#include <projectexplorer/abstractprocessstep.h>
#include <projectexplorer/buildstep.h>
#include <projectexplorer/kit.h>
#include <projectexplorer/project.h>

#include <utils/id.h>

#include <QTemporaryDir>

namespace QmlProjectManager {

class DeployMcuProcessStep : public ProjectExplorer::AbstractProcessStep
{
public:
    static const Utils::Id id;
    static void showError(const QString &text);

    DeployMcuProcessStep(ProjectExplorer::BuildStepList *bc, Utils::Id id);

private:
    QString findKitInformation(ProjectExplorer::Kit *kit, const QString &key);
    QTemporaryDir m_tmpDir;
};

class MCUBuildStepFactory : public ProjectExplorer::BuildStepFactory
{
public:
    MCUBuildStepFactory();
    static void attachToTarget(ProjectExplorer::Target *target);
    static ProjectExplorer::Kit *findMostRecentQulKit();
};

} // namespace QmlProjectManager