blob: 3b662b72b30df5e010fc81edff25ac48e279df13 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#pragma once
#include "qbsproject.h"
#include <projectexplorer/buildaspects.h>
#include <projectexplorer/buildconfiguration.h>
#include <qtsupport/qtbuildaspects.h>
namespace ProjectExplorer { class BuildStep; }
namespace QbsProjectManager {
namespace Internal {
class QbsBuildStep;
class QbsBuildStepData
{
public:
QString command;
bool dryRun = false;
bool keepGoing = false;
bool forceProbeExecution = false;
bool showCommandLines = false;
bool noInstall = false;
bool noBuild = false;
bool cleanInstallRoot = false;
bool isInstallStep = false;
int jobCount = 0;
Utils::FilePath installRoot;
};
class QbsBuildConfiguration final : public ProjectExplorer::BuildConfiguration
{
Q_OBJECT
friend class ProjectExplorer::BuildConfigurationFactory;
QbsBuildConfiguration(ProjectExplorer::Target *target, Utils::Id id);
public:
QbsBuildStep *qbsStep() const;
Utils::Store qbsConfiguration() const;
BuildType buildType() const override;
void setChangedFiles(const QStringList &files);
QStringList changedFiles() const;
void setActiveFileTags(const QStringList &fileTags);
QStringList activeFileTags() const;
void setProducts(const QStringList &products);
QStringList products() const;
QString equivalentCommandLine(const QbsBuildStepData &stepData) const;
Utils::StringAspect configurationName{this};
ProjectExplorer::SeparateDebugInfoAspect separateDebugInfoSetting{this};
QtSupport::QmlDebuggingAspect qmlDebuggingSetting{this};
QtSupport::QtQuickCompilerAspect qtQuickCompilerSetting{this};
signals:
void qbsConfigurationChanged();
private:
void fromMap(const Utils::Store &map) override;
void restrictNextBuild(const ProjectExplorer::RunConfiguration *rc) override;
void triggerReparseIfActive();
QStringList m_changedFiles;
QStringList m_activeFileTags;
QStringList m_products;
};
class QbsBuildConfigurationFactory final : public ProjectExplorer::BuildConfigurationFactory
{
public:
QbsBuildConfigurationFactory();
};
} // namespace Internal
} // namespace QbsProjectManager
|