forked from qt-creator/qt-creator
ProjectExplorer: Remove effectively unused enum
Change-Id: Ie4f23e5658e57a367ab77c2cc40443f32a60a8d0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1370,7 +1370,7 @@ FilePath CMakeBuildConfiguration::shadowBuildDirectory(const FilePath &projectFi
|
|||||||
const QString projectName = projectFilePath.parentDir().fileName();
|
const QString projectName = projectFilePath.parentDir().fileName();
|
||||||
const FilePath projectDir = Project::projectDirectory(projectFilePath);
|
const FilePath projectDir = Project::projectDirectory(projectFilePath);
|
||||||
FilePath buildPath = BuildConfiguration::buildDirectoryFromTemplate(projectDir,
|
FilePath buildPath = BuildConfiguration::buildDirectoryFromTemplate(projectDir,
|
||||||
projectFilePath, projectName, k, bcName, buildType, BuildConfiguration::ReplaceSpaces);
|
projectFilePath, projectName, k, bcName, buildType);
|
||||||
|
|
||||||
if (CMakeGeneratorKitAspect::isMultiConfigGenerator(k)) {
|
if (CMakeGeneratorKitAspect::isMultiConfigGenerator(k)) {
|
||||||
QString path = buildPath.path();
|
QString path = buildPath.path();
|
||||||
|
@@ -85,7 +85,7 @@ FilePath MesonBuildConfiguration::shadowBuildDirectory(const FilePath &projectFi
|
|||||||
const QString projectName = projectFilePath.parentDir().fileName();
|
const QString projectName = projectFilePath.parentDir().fileName();
|
||||||
return BuildConfiguration::buildDirectoryFromTemplate(
|
return BuildConfiguration::buildDirectoryFromTemplate(
|
||||||
Project::projectDirectory(projectFilePath),
|
Project::projectDirectory(projectFilePath),
|
||||||
projectFilePath, projectName, k, bcName, buildType, BuildConfiguration::ReplaceSpaces);
|
projectFilePath, projectName, k, bcName, buildType);
|
||||||
}
|
}
|
||||||
|
|
||||||
ProjectExplorer::BuildSystem *MesonBuildConfiguration::buildSystem() const
|
ProjectExplorer::BuildSystem *MesonBuildConfiguration::buildSystem() const
|
||||||
|
@@ -604,8 +604,7 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD
|
|||||||
const QString &projectName,
|
const QString &projectName,
|
||||||
const Kit *kit,
|
const Kit *kit,
|
||||||
const QString &bcName,
|
const QString &bcName,
|
||||||
BuildType buildType,
|
BuildType buildType)
|
||||||
SpaceHandling spaceHandling)
|
|
||||||
{
|
{
|
||||||
MacroExpander exp;
|
MacroExpander exp;
|
||||||
|
|
||||||
@@ -644,8 +643,7 @@ FilePath BuildConfiguration::buildDirectoryFromTemplate(const FilePath &projectD
|
|||||||
qCDebug(bcLog) << "build dir template:" << buildDir;
|
qCDebug(bcLog) << "build dir template:" << buildDir;
|
||||||
buildDir = exp.expand(buildDir);
|
buildDir = exp.expand(buildDir);
|
||||||
qCDebug(bcLog) << "expanded build:" << buildDir;
|
qCDebug(bcLog) << "expanded build:" << buildDir;
|
||||||
if (spaceHandling == ReplaceSpaces)
|
buildDir.replace(" ", "-");
|
||||||
buildDir.replace(" ", "-");
|
|
||||||
|
|
||||||
return projectDir.resolvePath(buildDir);
|
return projectDir.resolvePath(buildDir);
|
||||||
}
|
}
|
||||||
|
@@ -110,14 +110,12 @@ public:
|
|||||||
|
|
||||||
static QString buildTypeName(BuildType type);
|
static QString buildTypeName(BuildType type);
|
||||||
|
|
||||||
enum SpaceHandling { KeepSpace, ReplaceSpaces };
|
|
||||||
static Utils::FilePath buildDirectoryFromTemplate(const Utils::FilePath &projectDir,
|
static Utils::FilePath buildDirectoryFromTemplate(const Utils::FilePath &projectDir,
|
||||||
const Utils::FilePath &mainFilePath,
|
const Utils::FilePath &mainFilePath,
|
||||||
const QString &projectName,
|
const QString &projectName,
|
||||||
const Kit *kit,
|
const Kit *kit,
|
||||||
const QString &bcName,
|
const QString &bcName,
|
||||||
BuildType buildType,
|
BuildType buildType);
|
||||||
SpaceHandling spaceHandling = ReplaceSpaces);
|
|
||||||
|
|
||||||
bool isActive() const;
|
bool isActive() const;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user