Setup debug and release build configurations again

* Default to the type used to create the makefile when importing
 * Default to the default type of the Qt version otherwise
This commit is contained in:
Tobias Hunger
2010-08-24 18:27:19 +02:00
parent f3f6d642e5
commit ab4c16a517

View File

@@ -242,13 +242,11 @@ bool TargetSetupPage::setupProject(Qt4ProjectManager::Qt4Project *project)
info.isTemporary = false;
}
// If we have buildAll, then we want to havbe two BCs set up, one to build debug,
// the other to build release.
if (info.buildConfig & QtVersion::BuildAll)
targetInfos.append(BuildConfigurationInfo(info.version, info.buildConfig & ~(info.buildConfig & QtVersion::DebugBuild),
info.additionalArguments, info.directory));
// we want to havbe two BCs set up, one to build debug, the other to build release.
targetInfos.append(BuildConfigurationInfo(info.version, info.buildConfig,
info.additionalArguments, info.directory));
targetInfos.append(BuildConfigurationInfo(info.version, info.buildConfig & info.buildConfig ^ QtVersion::DebugBuild,
info.additionalArguments, info.directory));
}
// create the target:
@@ -325,6 +323,7 @@ QList<TargetSetupPage::ImportInfo> TargetSetupPage::importInfosForKnownQtVersion
info.isTemporary = false;
info.isShadowBuild = v->supportsShadowBuilds();
info.version = v;
info.buildConfig = v->defaultBuildConfig();
results.append(info);
}
return results;