Add experimental Maemo support.

Includes Maemo tool chain, run configuration, run control,
manager, etc.

Adds the DebuggerManager to the object pool. This is ugly, but
nobody came up with anything better on short notice. To be
refactored.

Co-Authored-By: kh1
This commit is contained in:
ck
2009-10-16 17:33:12 +02:00
parent 6f5158fa8f
commit 6a49395e33
23 changed files with 2392 additions and 13 deletions

View File

@@ -35,6 +35,9 @@
#ifdef QTCREATOR_WITH_S60
#include "qt-s60/s60manager.h"
#endif
#ifdef QTCREATOR_WITH_MAEMO
#include "qt-maemo/maemomanager.h"
#endif
#include <projectexplorer/debugginghelper.h>
#include <projectexplorer/projectexplorer.h>
@@ -1055,6 +1058,10 @@ ProjectExplorer::ToolChain *QtVersion::createToolChain(ProjectExplorer::ToolChai
} else if (type == ProjectExplorer::ToolChain::RVCT_ARMV5
|| type == ProjectExplorer::ToolChain::RVCT_ARMV6) {
tempToolchain = S60Manager::instance()->createRVCTToolChain(this, type);
#endif
#ifdef QTCREATOR_WITH_MAEMO
} else if (type == ProjectExplorer::ToolChain::GCC_MAEMO) {
tempToolchain = MaemoManager::instance()->maemoToolChain(this);
#endif
} else {
qDebug()<<"Could not create ToolChain for"<<mkspec();
@@ -1150,6 +1157,25 @@ QList<ProjectExplorer::ToolChain::ToolChainType> QtVersion::possibleToolChainTyp
<< ProjectExplorer::ToolChain::RVCT_ARMV5
<< ProjectExplorer::ToolChain::RVCT_ARMV6
<< ProjectExplorer::ToolChain::WINSCW;
#endif
#ifdef QTCREATOR_WITH_MAEMO
} else if (spec.contains("linux-g++-opengl")) {
bool maemo = false;
const QString baseDir = m_versionInfo.contains("QT_INSTALL_DATA") ?
m_versionInfo.value("QT_INSTALL_DATA") : QLatin1String("");
QFile qconfigpri(baseDir + QLatin1String("/mkspecs/qconfig.pri"));
if (qconfigpri.exists()) {
qconfigpri.open(QIODevice::ReadOnly | QIODevice::Text);
QTextStream stream(&qconfigpri);
while (!stream.atEnd()) {
QString line = stream.readLine().trimmed();
if (line.startsWith(QLatin1String("QT_ARCH"))
&& line.endsWith(QLatin1String("arm")))
maemo = true;
}
}
toolChains << (maemo ? ProjectExplorer::ToolChain::GCC_MAEMO
: ProjectExplorer::ToolChain::GCC);
#endif
} else {
toolChains << ProjectExplorer::ToolChain::GCC;