Commit 14300191 authored by Daniel Teske's avatar Daniel Teske

QmakeBuildConfiguration: Offer both Debug and Release in "Add Build"

Change-Id: Iac9749816119dab772c5b6fa34b4d998a68bcab3
Reviewed-by: default avatarTobias Hunger <tobias.hunger@theqtcompany.com>
parent 52a52ca0
......@@ -559,7 +559,7 @@ QmakeBuildInfo *QmakeBuildConfigurationFactory::createBuildInfo(const Kit *k,
//: Non-ASCII characters in directory suffix may cause build issues.
suffix = tr("Debug", "Shadow build directory suffix");
}
info->typeName = tr("Build");
info->typeName = info->displayName;
// Leave info->buildDirectory unset;
info->kitId = k->id();
......@@ -589,11 +589,17 @@ int QmakeBuildConfigurationFactory::priority(const Target *parent) const
QList<BuildInfo *> QmakeBuildConfigurationFactory::availableBuilds(const Target *parent) const
{
QList<ProjectExplorer::BuildInfo *> result;
QmakeBuildInfo *info = createBuildInfo(parent->kit(), parent->project()->projectFilePath().toString(),
BuildConfiguration::Debug);
info->displayName.clear(); // ask for a name
info->buildDirectory.clear(); // This depends on the displayName
result << info;
const QString projectFilePath = parent->project()->projectFilePath().toString();
for (BuildConfiguration::BuildType buildType : { BuildConfiguration::Debug,
BuildConfiguration::Release }) {
QmakeBuildInfo *info = createBuildInfo(parent->kit(), projectFilePath,
buildType);
info->displayName.clear(); // ask for a name
info->buildDirectory.clear(); // This depends on the displayName
result << info;
}
return result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment