Commit 301f4773 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Revert "Fix more issues with buildconfiguration creation"

Doesn't compile.

This reverts commit 2b65c731.
Reviewed-By: dt
parent 643f50e1
......@@ -144,13 +144,12 @@ Qt4BaseTarget *Qt4DesktopTargetFactory::create(ProjectExplorer::Project *parent,
return 0;
QtVersion *qtVersion = knownVersions.first();
QtVersion::QmakeBuildConfigs config = qtVersion->defaultBuildConfig();
bool buildAll = qtVersion->defaultBuildConfig() & QtVersion::BuildAll;
bool buildAll = qtVersion->isValid() && (qtVersion->defaultBuildConfig() & QtVersion::BuildAll);
QtVersion::QmakeBuildConfigs config = buildAll ? QtVersion::BuildAll : QtVersion::QmakeBuildConfig(0);
QString dir = defaultShadowBuildDirectory(Qt4Project::defaultTopLevelBuildDirectory(proFilePath), Constants::DESKTOP_TARGET_ID);
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), dir));
if (buildAll)
infos.append(BuildConfigurationInfo(qtVersion, config ^ QtVersion::DebugBuild, QString(), dir));
QList<BuildConfigurationInfo> infos;
infos.append(BuildConfigurationInfo(qtVersion, config | QtVersion::DebugBuild, QString(), QString()));
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
return create(parent, id, infos);
}
......
......@@ -129,7 +129,7 @@ QList<BuildConfigurationInfo> Qt4SimulatorTargetFactory::availableBuildConfigura
bool buildAll = config & QtVersion::BuildAll;
QString dir = defaultShadowBuildDirectory(Qt4Project::defaultTopLevelBuildDirectory(proFilePath), Constants::QT_SIMULATOR_TARGET_ID);
infos.append(BuildConfigurationInfo(version, config, QString(), dir));
if (buildAll)
if (config)
infos.append(BuildConfigurationInfo(version, config ^ QtVersion::DebugBuild, QString(), dir));
}
return infos;
......@@ -145,12 +145,12 @@ Qt4BaseTarget *Qt4SimulatorTargetFactory::create(ProjectExplorer::Project *paren
return 0;
QtVersion *qtVersion = knownVersions.first();
QtVersion::QmakeBuildConfigs config = qtVersion->defaultBuildConfig();
bool buildAll = config & QtVersion::BuildAll;
QString dir = defaultShadowBuildDirectory(Qt4Project::defaultTopLevelBuildDirectory(proFilePath), Constants::QT_SIMULATOR_TARGET_ID);
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), dir));
if (buildAll)
infos.append(BuildConfigurationInfo(qtVersion, config ^ QtVersion::DebugBuild, QString(), dir));
bool buildAll = qtVersion->isValid() && (qtVersion->defaultBuildConfig() & QtVersion::BuildAll);
QtVersion::QmakeBuildConfigs config = buildAll ? QtVersion::BuildAll : QtVersion::QmakeBuildConfig(0);
QList<BuildConfigurationInfo> infos;
infos.append(BuildConfigurationInfo(qtVersion, config | QtVersion::DebugBuild, QString(), QString()));
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
return create(parent, id, infos);
}
......
......@@ -178,12 +178,12 @@ Qt4BaseTarget *Qt4MaemoTargetFactory::create(ProjectExplorer::Project *parent, c
return 0;
QtVersion *qtVersion = knownVersions.first();
QtVersion::QmakeBuildConfigs config = qtVersion->defaultBuildConfig();
bool buildAll = config & QtVersion::BuildAll;
QString dir = defaultShadowBuildDirectory(Qt4Project::defaultTopLevelBuildDirectory(proFilePath), id);
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), dir));
if (buildAll)
infos.append(BuildConfigurationInfo(qtVersion, config ^ QtVersion::DebugBuild, QString(), dir));
bool buildAll = qtVersion->isValid() && (qtVersion->defaultBuildConfig() & QtVersion::BuildAll);
QtVersion::QmakeBuildConfigs config = buildAll ? QtVersion::BuildAll : QtVersion::QmakeBuildConfig(0);
QList<BuildConfigurationInfo> infos;
infos.append(BuildConfigurationInfo(qtVersion, config | QtVersion::DebugBuild, QString(), QString()));
infos.append(BuildConfigurationInfo(qtVersion, config, QString(), QString()));
return create(parent, id, infos);
}
......
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