diff options
author | Christian Kandeler <christian.kandeler@nokia.com> | 2012-04-20 17:09:25 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2012-04-20 17:43:43 +0200 |
commit | 570a1375633b03651dfb4d5559269b3f30932b03 (patch) | |
tree | 486407c3d4a0a12b0f7549f08106337bb3aa5b8a /src/app/shared | |
parent | 71a17a2e386adac910b2656fe62f6917012e1678 (diff) |
Special platforms setup: Adapt to some recent changes.
- Add profiles.
- Take variable renamings into account.
Change-Id: Ic1f3f8896b1489cd059067c4c75376daa5a7ab17
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'src/app/shared')
-rw-r--r-- | src/app/shared/specialplatformssetup.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/app/shared/specialplatformssetup.cpp b/src/app/shared/specialplatformssetup.cpp index 2c9f65797..3b7ac27de 100644 --- a/src/app/shared/specialplatformssetup.cpp +++ b/src/app/shared/specialplatformssetup.cpp @@ -64,8 +64,12 @@ void SpecialPlatformsSetup::setup() const QString configBaseDir = QString::fromLocal8Bit(runProcess(commandLine, QProcessEnvironment::systemEnvironment())).trimmed(); - foreach (const PlatformInfo &pi, gatherPlatformInfo()) + foreach (const PlatformInfo &pi, gatherPlatformInfo()) { writeConfigFile(pi, configBaseDir); + const QString registerCommandLine = QString::fromLocal8Bit("%1 config " + "--global profiles.%2.qbs.platform %2").arg(qbsPath, pi.name); + runProcess(registerCommandLine, QProcessEnvironment::systemEnvironment()); + } } QString SpecialPlatformsSetup::helpString() const @@ -196,8 +200,8 @@ void SpecialPlatformsSetup::writeConfigFile(const PlatformInfo &platformInfo, platformInfo.sysrootDir + QLatin1String("/usr/lib")); settings.setValue(QLatin1String("incPath"), platformInfo.qtIncDir); settings.setValue(QLatin1String("mkspecsPath"), platformInfo.qtMkspecsDir); - settings.setValue(QLatin1String("qtNamespace"), QString()); - settings.setValue(QLatin1String("qtLibInfix"), QString()); + settings.setValue(QLatin1String("namespace"), QString()); + settings.setValue(QLatin1String("libInfix"), QString()); settings.endGroup(); settings.beginGroup(QLatin1String("environment")); |