Commit 29c95e3c authored by Alessandro Portale's avatar Alessandro Portale

ProjectExplorer, QtSupport: Remove wince* sources

WinCE support has not been maintained since a while.

Change-Id: Ieb388f981451a1178e70960f41e9db4bb3c789f9
Reviewed-by: Joerg Bornemann's avatarJoerg Bornemann <joerg.bornemann@qt.io>
parent 80bdcb95
......@@ -306,14 +306,12 @@ FORMS += processstep.ui \
WINSOURCES += \
windebuginterface.cpp \
msvctoolchain.cpp \
abstractmsvctoolchain.cpp \
wincetoolchain.cpp
abstractmsvctoolchain.cpp
WINHEADERS += \
windebuginterface.h \
msvctoolchain.h \
abstractmsvctoolchain.h \
wincetoolchain.h
abstractmsvctoolchain.h
win32|equals(TEST, 1) {
SOURCES += $$WINSOURCES
......
......@@ -238,8 +238,6 @@ Project {
"abstractmsvctoolchain.h",
"msvctoolchain.cpp",
"msvctoolchain.h",
"wincetoolchain.cpp",
"wincetoolchain.h",
"windebuginterface.cpp",
"windebuginterface.h",
]
......
This diff is collapsed.
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#pragma once
#include "abstractmsvctoolchain.h"
#include "abi.h"
#include "toolchainconfigwidget.h"
namespace ProjectExplorer {
namespace Internal {
class WinCEToolChain : public AbstractMsvcToolChain
{
public:
WinCEToolChain(const QString &name,
const Abi &abi,
const QString &vcvarsBat,
const QString &msvcVer,
const QString &ceVer,
const QString &binPath,
const QString &includePath,
const QString &libPath,
Core::Id language,
Detection d = ManualDetection);
Utils::FileNameList suggestedMkspecList() const override;
static WinCEToolChain *readFromMap(const QVariantMap &data);
QString typeDisplayName() const override;
QString msvcVer() const { return m_msvcVer; }
QString ceVer() const;
QString binPath() const { return m_binPath; }
QString includePath() const { return m_includePath; }
QString libPath() const { return m_libPath; }
QVariantMap toMap() const override;
bool fromMap(const QVariantMap &data) override;
ToolChainConfigWidget *configurationWidget() override;
ToolChain *clone() const override;
static QString autoDetectCdbDebugger(QStringList *checkedDirectories = nullptr);
bool operator ==(const ToolChain &other) const override;
protected:
Utils::Environment readEnvironmentSetting(const Utils::Environment& env) const final;
private:
WinCEToolChain();
QString m_msvcVer;
QString m_ceVer;
QString m_binPath;
QString m_includePath;
QString m_libPath;
};
// --------------------------------------------------------------------------
// WinCEToolChainConfigWidget
// --------------------------------------------------------------------------
class WinCEToolChainConfigWidget : public ToolChainConfigWidget
{
Q_OBJECT
public:
WinCEToolChainConfigWidget(ToolChain *);
private:
void applyImpl() override { }
void discardImpl() override { }
bool isDirtyImpl() const override { return false; }
void makeReadOnlyImpl() override { }
};
class WinCEToolChainFactory : public ToolChainFactory
{
Q_OBJECT
public:
WinCEToolChainFactory();
QSet<Core::Id> supportedLanguages() const override;
QList<ToolChain *> autoDetect(const QList<ToolChain *> &alreadyKnown) override;
bool canRestore(const QVariantMap &data) override;
ToolChain *restore(const QVariantMap &data) override;
ToolChainConfigWidget *configurationWidget(ToolChain *);
private:
QList<ToolChain *> detectCEToolKits(const QString &msvcPath, const QString &vcvarsbat);
};
} // namespace Internal
} // namespace ProjectExplorer
......@@ -30,8 +30,6 @@ HEADERS += \
qtconfigwidget.h \
desktopqtversionfactory.h \
desktopqtversion.h \
winceqtversionfactory.h \
winceqtversion.h \
uicgenerator.h \
qscxmlcgenerator.h
......@@ -57,8 +55,6 @@ SOURCES += \
qtconfigwidget.cpp \
desktopqtversionfactory.cpp \
desktopqtversion.cpp \
winceqtversionfactory.cpp \
winceqtversion.cpp \
uicgenerator.cpp \
qscxmlcgenerator.cpp
......
......@@ -105,8 +105,6 @@ Project {
files: [
"desktopqtversion.cpp", "desktopqtversion.h",
"desktopqtversionfactory.cpp", "desktopqtversionfactory.h",
"winceqtversion.cpp", "winceqtversion.h",
"winceqtversionfactory.cpp", "winceqtversionfactory.h",
]
}
......
......@@ -37,7 +37,6 @@ const char CODEGEN_SETTINGS_PAGE_NAME[] = QT_TRANSLATE_NOOP("QtSupport", "Qt Cla
// QtVersions
const char DESKTOPQT[] = "Qt4ProjectManager.QtVersion.Desktop";
const char WINCEQT[] = "Qt4ProjectManager.QtVersion.WinCE";
// BaseQtVersion settings
static const char QTVERSIONID[] = "Id";
......
......@@ -32,7 +32,6 @@
#include "qtkitinformation.h"
#include "qtoptionspage.h"
#include "qtversionmanager.h"
#include "winceqtversionfactory.h"
#include "uicgenerator.h"
#include "qscxmlcgenerator.h"
......@@ -68,7 +67,6 @@ bool QtSupportPlugin::initialize(const QStringList &arguments, QString *errorMes
addAutoReleasedObject(new QtVersionManager);
addAutoReleasedObject(new DesktopQtVersionFactory);
addAutoReleasedObject(new WinCeQtVersionFactory);
addAutoReleasedObject(new CodeGenSettingsPage);
addAutoReleasedObject(new QtOptionsPage);
......
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#include "winceqtversion.h"
#include "qtsupportconstants.h"
#include <coreplugin/id.h>
#include <QCoreApplication>
#include <QStringList>
using namespace QtSupport;
using namespace QtSupport::Internal;
WinCeQtVersion::WinCeQtVersion(const Utils::FileName &path, const QString &archType,
bool isAutodetected, const QString &autodetectionSource)
: BaseQtVersion(path, isAutodetected, autodetectionSource),
m_archType(ProjectExplorer::Abi::ArmArchitecture)
{
if (0 == archType.compare(QLatin1String("x86"), Qt::CaseInsensitive))
m_archType = ProjectExplorer::Abi::X86Architecture;
else if (0 == archType.compare(QLatin1String("mipsii"), Qt::CaseInsensitive))
m_archType = ProjectExplorer::Abi::MipsArchitecture;
setUnexpandedDisplayName(defaultUnexpandedDisplayName(path, false));
}
WinCeQtVersion *WinCeQtVersion::clone() const
{
return new WinCeQtVersion(*this);
}
QString WinCeQtVersion::type() const
{
return QLatin1String(Constants::WINCEQT);
}
QList<ProjectExplorer::Abi> WinCeQtVersion::detectQtAbis() const
{
return QList<ProjectExplorer::Abi>()
<< ProjectExplorer::Abi(m_archType,
ProjectExplorer::Abi::WindowsOS,
ProjectExplorer::Abi::WindowsCEFlavor,
ProjectExplorer::Abi::PEFormat,
false);
}
QString WinCeQtVersion::description() const
{
return QCoreApplication::translate("QtVersion",
"Qt for WinCE", "Qt Version is meant for WinCE");
}
void WinCeQtVersion::fromMap(const QVariantMap &map)
{
BaseQtVersion::fromMap(map);
// Default to an ARM architecture, then use the makespec to see what
// the architecture is. This assumes that a WinCE makespec will be
// named <Description>-<Architecture>-<Compiler> with no other '-' characters.
m_archType = ProjectExplorer::Abi::ArmArchitecture;
const QStringList splitSpec = mkspec().toString().split(QLatin1Char('-'));
if (splitSpec.length() == 3) {
const QString archString = splitSpec.value(1);
if (archString.contains(QLatin1String("x86"), Qt::CaseInsensitive))
m_archType = ProjectExplorer::Abi::X86Architecture;
else if (archString.contains(QLatin1String("mips"), Qt::CaseInsensitive))
m_archType = ProjectExplorer::Abi::MipsArchitecture;
}
}
QSet<Core::Id> WinCeQtVersion::targetDeviceTypes() const
{
return QSet<Core::Id>();
}
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#pragma once
#include "baseqtversion.h"
namespace QtSupport {
namespace Internal {
class WinCeQtVersion : public BaseQtVersion
{
public:
WinCeQtVersion() = default;
WinCeQtVersion(const Utils::FileName &path, const QString &archType,
bool isAutodetected = false, const QString &autodetectionSource = QString());
~WinCeQtVersion() = default;
WinCeQtVersion *clone() const;
QString type() const;
QList<ProjectExplorer::Abi> detectQtAbis() const;
QString description() const;
void fromMap(const QVariantMap &data);
QSet<Core::Id> targetDeviceTypes() const;
private:
ProjectExplorer::Abi::Architecture m_archType = ProjectExplorer::Abi::ArmArchitecture;
};
} // Internal
} // QtSupport
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#include "winceqtversionfactory.h"
#include "winceqtversion.h"
#include "qtsupportconstants.h"
#include "profilereader.h"
#include <QFileInfo>
using namespace QtSupport;
using namespace QtSupport::Internal;
WinCeQtVersionFactory::WinCeQtVersionFactory(QObject *parent)
: QtVersionFactory(parent)
{
}
WinCeQtVersionFactory::~WinCeQtVersionFactory()
{
}
bool WinCeQtVersionFactory::canRestore(const QString &type)
{
return type == QLatin1String(Constants::WINCEQT);
}
BaseQtVersion *WinCeQtVersionFactory::restore(const QString &type, const QVariantMap &data)
{
if (!canRestore(type))
return 0;
WinCeQtVersion *v = new WinCeQtVersion;
v->fromMap(data);
return v;
}
int WinCeQtVersionFactory::priority() const
{
return 50;
}
BaseQtVersion *WinCeQtVersionFactory::create(const Utils::FileName &qmakePath, ProFileEvaluator *evaluator, bool isAutoDetected, const QString &autoDetectionSource)
{
QFileInfo fi = qmakePath.toFileInfo();
if (!fi.exists() || !fi.isExecutable() || !fi.isFile())
return 0;
QString ce_sdk = evaluator->values(QLatin1String("CE_SDK")).join(QLatin1Char(' '));
QString ce_arch = evaluator->value(QLatin1String("CE_ARCH"));
if (!ce_sdk.isEmpty() && !ce_arch.isEmpty())
return new WinCeQtVersion(qmakePath, ce_arch, isAutoDetected, autoDetectionSource);
return 0;
}
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
****************************************************************************/
#pragma once
#include "qtversionfactory.h"
namespace QtSupport {
namespace Internal {
class WinCeQtVersionFactory : public QtVersionFactory
{
public:
explicit WinCeQtVersionFactory(QObject *parent = 0);
~WinCeQtVersionFactory();
virtual bool canRestore(const QString &type);
virtual BaseQtVersion *restore(const QString &type, const QVariantMap &data);
virtual int priority() const;
virtual BaseQtVersion *create(const Utils::FileName &qmakePath, ProFileEvaluator *evaluator,
bool isAutoDetected = false, const QString &autoDetectionSource = QString());
};
} // Internal
} // QtSupport
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