forked from qt-creator/qt-creator
Maemo: Enable compilation unconditionally.
This commit is contained in:
@@ -10,10 +10,5 @@ SUBDIRS = \
|
|||||||
utils/process_stub.pro \
|
utils/process_stub.pro \
|
||||||
cplusplus \
|
cplusplus \
|
||||||
qmljs \
|
qmljs \
|
||||||
symbianutils
|
symbianutils \
|
||||||
|
3rdparty
|
||||||
SUPPORT_QT_MAEMO = $$(QTCREATOR_WITH_MAEMO)
|
|
||||||
!isEmpty(SUPPORT_QT_MAEMO) {
|
|
||||||
SUBDIRS += 3rdparty
|
|
||||||
message("Adding experimental ssh support for Qt/Maemo applications.")
|
|
||||||
}
|
|
||||||
|
@@ -47,12 +47,9 @@ namespace Internal {
|
|||||||
|
|
||||||
QString homeDirOnDevice(const QString &uname)
|
QString homeDirOnDevice(const QString &uname)
|
||||||
{
|
{
|
||||||
const QString &dir = uname == QLatin1String("root")
|
return uname == QLatin1String("root")
|
||||||
? QString::fromLatin1("/root")
|
? QString::fromLatin1("/root")
|
||||||
: QLatin1String("/home/") + uname;
|
: QLatin1String("/home/") + uname;
|
||||||
qDebug("%s: user name %s is mapped to home dir %s",
|
|
||||||
Q_FUNC_INFO, qPrintable(uname), qPrintable(dir));
|
|
||||||
return dir;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@@ -1,30 +1,25 @@
|
|||||||
SUPPORT_QT_MAEMO = $$(QTCREATOR_WITH_MAEMO)
|
INCLUDEPATH += $$PWD/../../../libs/3rdparty/botan/build
|
||||||
!isEmpty(SUPPORT_QT_MAEMO) {
|
INCLUDEPATH += $$PWD/../../../libs/3rdparty/net7ssh/src
|
||||||
message("Adding experimental support for Qt/Maemo applications.")
|
LIBS += -l$$qtLibraryTarget(Net7ssh) -l$$qtLibraryTarget(Botan)
|
||||||
DEFINES += QTCREATOR_WITH_MAEMO
|
HEADERS += $$PWD/maemorunconfiguration.h \
|
||||||
INCLUDEPATH += $$PWD/../../../libs/3rdparty/net7ssh/src
|
$$PWD/maemomanager.h \
|
||||||
INCLUDEPATH += $$PWD/../../../libs/3rdparty/botan/build
|
$$PWD/maemotoolchain.h \
|
||||||
LIBS += -l$$qtLibraryTarget(Net7ssh) -l$$qtLibraryTarget(Botan)
|
$$PWD/maemodeviceconfigurations.h \
|
||||||
HEADERS += $$PWD/maemorunconfiguration.h \
|
$$PWD/maemosettingspage.h \
|
||||||
$$PWD/maemomanager.h \
|
$$PWD/maemosettingswidget.h \
|
||||||
$$PWD/maemotoolchain.h \
|
$$PWD/maemosshconnection.h \
|
||||||
$$PWD/maemodeviceconfigurations.h \
|
$$PWD/maemosshthread.h \
|
||||||
$$PWD/maemosettingspage.h \
|
$$PWD/maemoruncontrol.h \
|
||||||
$$PWD/maemosettingswidget.h \
|
$$PWD/maemorunconfigurationwidget.h
|
||||||
$$PWD/maemosshconnection.h \
|
SOURCES += $$PWD/maemorunconfiguration.cpp \
|
||||||
$$PWD/maemosshthread.h \
|
$$PWD/maemomanager.cpp \
|
||||||
$$PWD/maemoruncontrol.h \
|
$$PWD/maemotoolchain.cpp \
|
||||||
$$PWD/maemorunconfigurationwidget.h
|
$$PWD/maemodeviceconfigurations.cpp \
|
||||||
SOURCES += $$PWD/maemorunconfiguration.cpp \
|
$$PWD/maemosettingspage.cpp \
|
||||||
$$PWD/maemomanager.cpp \
|
$$PWD/maemosettingswidget.cpp \
|
||||||
$$PWD/maemotoolchain.cpp \
|
$$PWD/maemosshconnection.cpp \
|
||||||
$$PWD/maemodeviceconfigurations.cpp \
|
$$PWD/maemosshthread.cpp \
|
||||||
$$PWD/maemosettingspage.cpp \
|
$$PWD/maemoruncontrol.cpp \
|
||||||
$$PWD/maemosettingswidget.cpp \
|
$$PWD/maemorunconfigurationwidget.cpp
|
||||||
$$PWD/maemosshconnection.cpp \
|
FORMS += $$PWD/maemosettingswidget.ui
|
||||||
$$PWD/maemosshthread.cpp \
|
RESOURCES += $$PWD/qt-maemo.qrc
|
||||||
$$PWD/maemoruncontrol.cpp \
|
|
||||||
$$PWD/maemorunconfigurationwidget.cpp
|
|
||||||
FORMS += $$PWD/maemosettingswidget.ui
|
|
||||||
RESOURCES += $$PWD/qt-maemo.qrc
|
|
||||||
}
|
|
||||||
|
@@ -47,12 +47,9 @@
|
|||||||
#include "gettingstartedwelcomepage.h"
|
#include "gettingstartedwelcomepage.h"
|
||||||
#include "gettingstartedwelcomepagewidget.h"
|
#include "gettingstartedwelcomepagewidget.h"
|
||||||
|
|
||||||
|
#include "qt-maemo/maemomanager.h"
|
||||||
#include "qt-s60/s60manager.h"
|
#include "qt-s60/s60manager.h"
|
||||||
|
|
||||||
#ifdef QTCREATOR_WITH_MAEMO
|
|
||||||
# include "qt-maemo/maemomanager.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
#include <extensionsystem/pluginmanager.h>
|
#include <extensionsystem/pluginmanager.h>
|
||||||
#include <projectexplorer/buildmanager.h>
|
#include <projectexplorer/buildmanager.h>
|
||||||
@@ -149,10 +146,7 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
|
|||||||
addAutoReleasedObject(new LinguistExternalEditor);
|
addAutoReleasedObject(new LinguistExternalEditor);
|
||||||
|
|
||||||
addAutoReleasedObject(new S60Manager);
|
addAutoReleasedObject(new S60Manager);
|
||||||
|
|
||||||
#ifdef QTCREATOR_WITH_MAEMO
|
|
||||||
addAutoReleasedObject(MaemoManager::instance());
|
addAutoReleasedObject(MaemoManager::instance());
|
||||||
#endif
|
|
||||||
|
|
||||||
new ProFileCacheManager(this);
|
new ProFileCacheManager(this);
|
||||||
|
|
||||||
|
@@ -131,17 +131,25 @@ bool Qt4RunConfiguration::isEnabled(ProjectExplorer::BuildConfiguration *configu
|
|||||||
{
|
{
|
||||||
Qt4BuildConfiguration *qt4bc = qobject_cast<Qt4BuildConfiguration *>(configuration);
|
Qt4BuildConfiguration *qt4bc = qobject_cast<Qt4BuildConfiguration *>(configuration);
|
||||||
QTC_ASSERT(qt4bc, return false);
|
QTC_ASSERT(qt4bc, return false);
|
||||||
ProjectExplorer::ToolChain::ToolChainType type = qt4bc->toolChainType();
|
|
||||||
if (type == ProjectExplorer::ToolChain::WINSCW
|
using namespace ProjectExplorer;
|
||||||
|| type == ProjectExplorer::ToolChain::GCCE
|
ToolChain::ToolChainType type = qt4bc->toolChainType();
|
||||||
|| type == ProjectExplorer::ToolChain::RVCT_ARMV5
|
bool enabled;
|
||||||
|| type == ProjectExplorer::ToolChain::RVCT_ARMV6)
|
switch (type) {
|
||||||
return false;
|
case ToolChain::MSVC: case ToolChain::WINCE:
|
||||||
#ifdef QTCREATOR_WITH_MAEMO
|
case ToolChain::GCC: case ToolChain::MinGW:
|
||||||
if (type == ProjectExplorer::ToolChain::GCC_MAEMO)
|
case ToolChain::GCCE_GNUPOC: case ToolChain::RVCT_ARMV6_GNUPOC:
|
||||||
return false;
|
case ToolChain::OTHER: case ToolChain::UNKNOWN:
|
||||||
#endif
|
case ToolChain::INVALID:
|
||||||
return true;
|
enabled = true;
|
||||||
|
break;
|
||||||
|
case ToolChain::WINSCW: case ToolChain::GCCE:
|
||||||
|
case ToolChain::RVCT_ARMV5: case ToolChain::RVCT_ARMV6:
|
||||||
|
case ToolChain::GCC_MAEMO:
|
||||||
|
enabled = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return enabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
void Qt4RunConfiguration::proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
|
void Qt4RunConfiguration::proFileUpdate(Qt4ProjectManager::Internal::Qt4ProFileNode *pro)
|
||||||
|
@@ -32,10 +32,8 @@
|
|||||||
#include "qt4projectmanagerconstants.h"
|
#include "qt4projectmanagerconstants.h"
|
||||||
#include "profilereader.h"
|
#include "profilereader.h"
|
||||||
|
|
||||||
#include "qt-s60/s60manager.h"
|
|
||||||
#ifdef QTCREATOR_WITH_MAEMO
|
|
||||||
#include "qt-maemo/maemomanager.h"
|
#include "qt-maemo/maemomanager.h"
|
||||||
#endif
|
#include "qt-s60/s60manager.h"
|
||||||
|
|
||||||
#include <projectexplorer/debugginghelper.h>
|
#include <projectexplorer/debugginghelper.h>
|
||||||
#include <projectexplorer/projectexplorer.h>
|
#include <projectexplorer/projectexplorer.h>
|
||||||
@@ -1251,11 +1249,9 @@ void QtVersion::updateToolChainAndMkspec() const
|
|||||||
<< ToolChainPtr(s60mgr->createRVCTToolChain(this, ProjectExplorer::ToolChain::RVCT_ARMV6_GNUPOC));
|
<< ToolChainPtr(s60mgr->createRVCTToolChain(this, ProjectExplorer::ToolChain::RVCT_ARMV6_GNUPOC));
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
} else if (qt_arch == "arm") {
|
} else if (qt_arch == "arm"
|
||||||
#ifdef QTCREATOR_WITH_MAEMO
|
&& MaemoManager::instance()->isValidMaemoQtVersion(this)) {
|
||||||
if (MaemoManager::instance()->isValidMaemoQtVersion(this))
|
m_toolChains << ToolChainPtr(MaemoManager::instance()->maemoToolChain(this));
|
||||||
m_toolChains << ToolChainPtr(MaemoManager::instance()->maemoToolChain(this));
|
|
||||||
#endif
|
|
||||||
} else if (qmakeCXX == "cl" || qmakeCXX == "icl") {
|
} else if (qmakeCXX == "cl" || qmakeCXX == "icl") {
|
||||||
// TODO proper support for intel cl
|
// TODO proper support for intel cl
|
||||||
m_toolChains << ToolChainPtr(
|
m_toolChains << ToolChainPtr(
|
||||||
|
Reference in New Issue
Block a user