2017-09-28 11:32:39 +02:00
|
|
|
/****************************************************************************
|
|
|
|
|
**
|
|
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
|
|
|
|
**
|
|
|
|
|
** This file is part of Qt Creator.
|
|
|
|
|
**
|
|
|
|
|
** 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
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
|
|
|
|
** 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.
|
|
|
|
|
**
|
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "cmake_global.h"
|
|
|
|
|
|
|
|
|
|
#include <projectexplorer/projectmacro.h>
|
2019-07-26 13:57:24 +02:00
|
|
|
#include <projectexplorer/projectnodes.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?
|
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;
|
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
|