1// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: GPL-3.0-or-later
4
5#ifndef BUILDERGLOBALS_H
6#define BUILDERGLOBALS_H
7
8#include <common/util/singleton.h>
9#include <QMetaType>
10#include <QColor>
11#include <QUuid>
12
13enum ToolChainType {
14 UnKnown,
15 QMake,
16 CMake
17};
18
19enum BuildState
20{
21 kNoBuild,
22 kBuilding,
23 kBuildFailed
24};
25
26enum BuildMenuType
27{
28 Build = 0,
29 Clean
30};
31
32struct BuildCommandInfo {
33 QString kitName;
34 QString program;
35 QStringList arguments;
36 QString workingDir;
37 QString uuid;
38 QString elfPath;
39
40 BuildCommandInfo() {
41 uuid = QUuid::createUuid().toString();
42 }
43};
44
45Q_DECLARE_METATYPE(BuildCommandInfo);
46
47
48
49#endif // BUILDERGLOBALS_H
50