forked from qt-creator/qt-creator
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:
@@ -284,6 +284,17 @@ void CMakeTool::setDisplayName(const QString &displayName)
|
||||
CMakeToolManager::notifyAboutUpdate(this);
|
||||
}
|
||||
|
||||
void CMakeTool::setPathMapper(const CMakeTool::PathMapper &pathMapper)
|
||||
{
|
||||
m_pathMapper = pathMapper;
|
||||
}
|
||||
|
||||
QString CMakeTool::mapAllPaths(ProjectExplorer::Kit *kit, const QString &in) const
|
||||
{
|
||||
if (m_pathMapper)
|
||||
return m_pathMapper(kit, in);
|
||||
return in;
|
||||
}
|
||||
|
||||
void CMakeTool::parseFunctionDetailsOutput(const QByteArray &output)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user