CMakeProjectManager: Support mapping chroot include paths

Provide a way for plugins to map include paths into a build chroot.
Plugins can register a path mapper if required, otherwise the paths
are not touched.

Change-Id: I621982831fa354d6d0f558a6c1dce4e014421f12
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
This commit is contained in:
Benjamin Zeller
2015-03-10 15:47:09 +01:00
parent 9f7c801e4d
commit 255b5850e2
7 changed files with 62 additions and 8 deletions

View File

@@ -36,7 +36,10 @@
#include <QXmlStreamReader>
namespace ProjectExplorer { class FileNode; }
namespace ProjectExplorer {
class FileNode;
class Kit;
}
namespace CMakeProjectManager {
namespace Internal {
@@ -44,7 +47,7 @@ namespace Internal {
class CMakeCbpParser : public QXmlStreamReader
{
public:
bool parseCbpFile(const QString &fileName, const QString &sourceDirectory);
bool parseCbpFile(ProjectExplorer::Kit *kit, const QString &fileName, const QString &sourceDirectory);
QList<ProjectExplorer::FileNode *> fileList();
QList<ProjectExplorer::FileNode *> cmakeFileList();
QList<CMakeBuildTarget> buildTargets();
@@ -69,6 +72,7 @@ private:
void parseUnknownElement();
void sortFiles();
ProjectExplorer::Kit *m_kit;
QList<ProjectExplorer::FileNode *> m_fileList;
QList<ProjectExplorer::FileNode *> m_cmakeFileList;
QSet<Utils::FileName> m_processedUnits;