forked from qt-creator/qt-creator
Autotools: Add method to retrieve default build dir based on project file
Change-Id: Ifd5af5c69329d2b9c86da8c8df796f317c65e1ee Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
@@ -125,7 +125,12 @@ IProjectManager *AutotoolsProject::projectManager() const
|
||||
|
||||
QString AutotoolsProject::defaultBuildDirectory() const
|
||||
{
|
||||
return projectDirectory();
|
||||
return defaultBuildDirectory(projectFilePath());
|
||||
}
|
||||
|
||||
QString AutotoolsProject::defaultBuildDirectory(const QString &projectPath)
|
||||
{
|
||||
return QFileInfo(projectPath).absolutePath();
|
||||
}
|
||||
|
||||
ProjectNode *AutotoolsProject::rootProjectNode() const
|
||||
|
@@ -77,6 +77,7 @@ public:
|
||||
ProjectExplorer::ProjectNode *rootProjectNode() const;
|
||||
QStringList files(FilesMode fileMode) const;
|
||||
QString defaultBuildDirectory() const;
|
||||
static QString defaultBuildDirectory(const QString &projectPath);
|
||||
QStringList buildTargets() const;
|
||||
|
||||
protected:
|
||||
|
Reference in New Issue
Block a user