[Qt-creator] Why Creator's Qbs plugin need to special process for Qt?

Konstantin Tokarev annulen at yandex.ru
Wed Aug 29 09:28:44 CEST 2012


29.08.2012, 07:55, "Loaden" <loaden at gmail.com>:
> See:
> void QbsProject::createBuildProject(const QString &buildProjectName, QtSupport::BaseQtVersion *qtVersion)
> {
>     if (qtVersion) {
>         if (qtVersion->defaultBuildConfig() == QtSupport::BaseQtVersion::DebugBuild || qtVersion->defaultBuildConfig() == QtSupport::BaseQtVersion::BuildAll) {
>             buildConfiguration["qbs.buildVariant"] = "debug";
>         } else {
>             buildConfiguration["qbs.buildVariant"] = "release";
>         }
>         buildConfiguration["qt/core.qtPath"] = qtVersion->sourcePath().toString();
>
>     } else {
>         buildConfiguration["qbs.buildVariant"] = "debug";
>     }
>
> I don't like the design.
> I thought QbsProjectManager should like CMakeProjectManager.
> No need Qt depends!

Actually, missing Qt dependence is a big gap in CMakeProjectManager which needs to be fixed.

-- 
Regards,
Konstantin



More information about the Qt-creator mailing list