forked from qt-creator/qt-creator
Fixes: QTCREATORBUG-29992 Change-Id: Ia84871cc963263c34054d17742556b38a1f1934e Reviewed-by: hjk <hjk@qt.io>
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
// 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 "cmaketool.h"
|
|
|
|
#include <utils/environment.h>
|
|
#include <utils/filepath.h>
|
|
|
|
#include <functional>
|
|
|
|
namespace Utils {
|
|
class MacroExpander;
|
|
class OutputLineParser;
|
|
} // namespace Utils
|
|
|
|
namespace CMakeProjectManager::Internal {
|
|
|
|
class CMakeBuildSystem;
|
|
|
|
class BuildDirParameters
|
|
{
|
|
public:
|
|
BuildDirParameters();
|
|
explicit BuildDirParameters(CMakeBuildSystem *buildSystem);
|
|
|
|
bool isValid() const;
|
|
CMakeTool *cmakeTool() const;
|
|
|
|
QString projectName;
|
|
|
|
Utils::FilePath sourceDirectory;
|
|
Utils::FilePath buildDirectory;
|
|
QString cmakeBuildType;
|
|
|
|
Utils::Environment environment;
|
|
|
|
Utils::Id cmakeToolId;
|
|
|
|
QStringList initialCMakeArguments;
|
|
QStringList configurationChangesArguments;
|
|
QStringList additionalCMakeArguments;
|
|
|
|
Utils::MacroExpander* expander = nullptr;
|
|
|
|
QList<Utils::OutputLineParser*> outputParsers() const;
|
|
|
|
private:
|
|
using OutputParserGenerator = std::function<QList<Utils::OutputLineParser*>()>;
|
|
OutputParserGenerator outputParserGenerator;
|
|
};
|
|
|
|
} // CMakeProjectManager::Internal
|