2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2017-09-28 11:32:39 +02:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cmake_global.h"
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/projectmacro.h>
|
2019-07-26 13:57:24 +02:00
|
|
|
#include <projectexplorer/projectnodes.h>
|
2024-03-15 16:25:06 +01:00
|
|
|
#include <projectexplorer/runconfigurationaspects.h>
|
2017-09-28 11:32:39 +02:00
|
|
|
|
|
|
|
|
#include <utils/fileutils.h>
|
|
|
|
|
|
|
|
|
|
#include <QStringList>
|
|
|
|
|
|
|
|
|
|
namespace CMakeProjectManager {
|
|
|
|
|
|
|
|
|
|
enum TargetType {
|
2019-06-19 13:25:27 +02:00
|
|
|
ExecutableType,
|
|
|
|
|
StaticLibraryType,
|
|
|
|
|
DynamicLibraryType,
|
|
|
|
|
ObjectLibraryType,
|
|
|
|
|
UtilityType
|
2017-09-28 11:32:39 +02:00
|
|
|
};
|
|
|
|
|
|
2019-07-26 13:57:24 +02:00
|
|
|
using Backtrace = QVector<ProjectExplorer::FolderNode::LocationInfo>;
|
|
|
|
|
using Backtraces = QVector<Backtrace>;
|
|
|
|
|
|
2017-09-28 11:32:39 +02:00
|
|
|
class CMAKE_EXPORT CMakeBuildTarget
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
QString title;
|
2019-05-28 13:49:26 +02:00
|
|
|
Utils::FilePath executable; // TODO: rename to output?
|
2024-03-15 16:25:06 +01:00
|
|
|
QList<ProjectExplorer::Launcher> launchers;
|
2017-09-28 11:32:39 +02:00
|
|
|
TargetType targetType = UtilityType;
|
2019-12-12 11:15:36 +01:00
|
|
|
bool linksToQtGui = false;
|
2021-06-24 17:44:14 +02:00
|
|
|
bool qtcRunnable = true;
|
2019-05-28 13:49:26 +02:00
|
|
|
Utils::FilePath workingDirectory;
|
|
|
|
|
Utils::FilePath sourceDirectory;
|
|
|
|
|
Utils::FilePath makeCommand;
|
2020-01-21 14:00:56 +01:00
|
|
|
Utils::FilePaths libraryDirectories;
|
2023-12-20 10:28:33 +01:00
|
|
|
Utils::FilePaths sourceFiles;
|
2017-09-28 11:32:39 +02:00
|
|
|
|
2019-07-26 13:57:24 +02:00
|
|
|
Backtrace backtrace;
|
|
|
|
|
|
|
|
|
|
Backtraces dependencyDefinitions;
|
|
|
|
|
Backtraces sourceDefinitions;
|
|
|
|
|
Backtraces defineDefinitions;
|
|
|
|
|
Backtraces includeDefinitions;
|
|
|
|
|
Backtraces installDefinitions;
|
2019-07-24 13:42:23 +02:00
|
|
|
|
2017-09-28 11:32:39 +02:00
|
|
|
// code model
|
2019-05-28 13:49:26 +02:00
|
|
|
QList<Utils::FilePath> includeFiles;
|
2017-09-28 11:32:39 +02:00
|
|
|
QStringList compilerOptions;
|
|
|
|
|
ProjectExplorer::Macros macros;
|
2019-05-28 13:49:26 +02:00
|
|
|
QList<Utils::FilePath> files;
|
2017-09-28 11:32:39 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace CMakeProjectManager
|