CMake: Encapsulate BuildDirManager in CMakeBC

This will make it easier to introduce a new type of BuildDirManager
to accommodate cmake server-mode.

Change-Id: I989aab9df44dff1cfdff226ef97bb30bb092ffdd
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Tobias Hunger
2016-10-06 11:31:27 +02:00
parent 5481ca6edb
commit 683b965297
4 changed files with 48 additions and 29 deletions

View File

@@ -26,6 +26,7 @@
#pragma once
#include "cmakeconfigitem.h"
#include "cmakeproject.h"
#include "configmodel.h"
#include <projectexplorer/buildconfiguration.h>
@@ -70,13 +71,16 @@ public:
QString error() const;
QString warning() const;
BuildDirManager *buildDirManager() const;
bool isParsing() const;
void maybeForceReparse();
void resetData();
bool persistCMakeState();
void runCMake();
void clearCache();
QList<CMakeBuildTarget> buildTargets() const;
void generateProjectTree(CMakeProjectNode *root) const;
static Utils::FileName
shadowBuildDirectory(const Utils::FileName &projectFilePath, const ProjectExplorer::Kit *k,