forked from qt-creator/qt-creator
QtSupport et al: Move QtVersionFactory to *QtVersion implementation
At most a dozen lines each left. Change-Id: Ifbf34f814266ba7bee83d3fee9db831eb450dfc4 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -19,7 +19,6 @@ HEADERS += \
|
|||||||
androidrunner.h \
|
androidrunner.h \
|
||||||
androidrunnerworker.h \
|
androidrunnerworker.h \
|
||||||
androiddebugsupport.h \
|
androiddebugsupport.h \
|
||||||
androidqtversionfactory.h \
|
|
||||||
androidqtversion.h \
|
androidqtversion.h \
|
||||||
androidcreatekeystorecertificate.h \
|
androidcreatekeystorecertificate.h \
|
||||||
javaparser.h \
|
javaparser.h \
|
||||||
@@ -67,7 +66,6 @@ SOURCES += \
|
|||||||
androidrunner.cpp \
|
androidrunner.cpp \
|
||||||
androidrunnerworker.cpp \
|
androidrunnerworker.cpp \
|
||||||
androiddebugsupport.cpp \
|
androiddebugsupport.cpp \
|
||||||
androidqtversionfactory.cpp \
|
|
||||||
androidqtversion.cpp \
|
androidqtversion.cpp \
|
||||||
androidcreatekeystorecertificate.cpp \
|
androidcreatekeystorecertificate.cpp \
|
||||||
javaparser.cpp \
|
javaparser.cpp \
|
||||||
|
@@ -75,8 +75,6 @@ Project {
|
|||||||
"androidqmltoolingsupport.h",
|
"androidqmltoolingsupport.h",
|
||||||
"androidqtversion.cpp",
|
"androidqtversion.cpp",
|
||||||
"androidqtversion.h",
|
"androidqtversion.h",
|
||||||
"androidqtversionfactory.cpp",
|
|
||||||
"androidqtversionfactory.h",
|
|
||||||
"androidrunconfiguration.cpp",
|
"androidrunconfiguration.cpp",
|
||||||
"androidrunconfiguration.h",
|
"androidrunconfiguration.h",
|
||||||
"androidrunenvironmentaspect.h",
|
"androidrunenvironmentaspect.h",
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
#include "androidpackageinstallationstep.h"
|
#include "androidpackageinstallationstep.h"
|
||||||
#include "androidpotentialkit.h"
|
#include "androidpotentialkit.h"
|
||||||
#include "androidqmltoolingsupport.h"
|
#include "androidqmltoolingsupport.h"
|
||||||
#include "androidqtversionfactory.h"
|
#include "androidqtversion.h"
|
||||||
#include "androidrunconfiguration.h"
|
#include "androidrunconfiguration.h"
|
||||||
#include "androidruncontrol.h"
|
#include "androidruncontrol.h"
|
||||||
#include "androidsettingspage.h"
|
#include "androidsettingspage.h"
|
||||||
|
@@ -42,9 +42,11 @@
|
|||||||
|
|
||||||
#include <proparser/profileevaluator.h>
|
#include <proparser/profileevaluator.h>
|
||||||
|
|
||||||
using namespace Android::Internal;
|
|
||||||
using namespace ProjectExplorer;
|
using namespace ProjectExplorer;
|
||||||
|
|
||||||
|
namespace Android {
|
||||||
|
namespace Internal {
|
||||||
|
|
||||||
AndroidQtVersion::AndroidQtVersion()
|
AndroidQtVersion::AndroidQtVersion()
|
||||||
: QtSupport::BaseQtVersion()
|
: QtSupport::BaseQtVersion()
|
||||||
{
|
{
|
||||||
@@ -154,3 +156,22 @@ QSet<Core::Id> AndroidQtVersion::targetDeviceTypes() const
|
|||||||
{
|
{
|
||||||
return {Constants::ANDROID_DEVICE_TYPE};
|
return {Constants::ANDROID_DEVICE_TYPE};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
AndroidQtVersionFactory::AndroidQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new AndroidQtVersion; });
|
||||||
|
setSupportedType(Constants::ANDROIDQT);
|
||||||
|
setPriority(90);
|
||||||
|
|
||||||
|
setRestrictionChecker([](const SetupData &setup) {
|
||||||
|
return !setup.config.contains("android-no-sdk")
|
||||||
|
&& (setup.config.contains("android")
|
||||||
|
|| setup.platforms.contains("android"));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
} // Internal
|
||||||
|
} // Android
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <qtsupport/baseqtversion.h>
|
#include <qtsupport/baseqtversion.h>
|
||||||
|
#include <qtsupport/qtversionfactory.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
@@ -62,5 +63,11 @@ private:
|
|||||||
mutable int m_minNdk = -1;
|
mutable int m_minNdk = -1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class AndroidQtVersionFactory : public QtSupport::QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
AndroidQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Android
|
} // namespace Android
|
||||||
|
@@ -1,47 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
**
|
|
||||||
** Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
|
|
||||||
** 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 "androidqtversionfactory.h"
|
|
||||||
#include "androidqtversion.h"
|
|
||||||
#include "androidconstants.h"
|
|
||||||
|
|
||||||
namespace Android {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
AndroidQtVersionFactory::AndroidQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new AndroidQtVersion; });
|
|
||||||
setSupportedType(Constants::ANDROIDQT);
|
|
||||||
setPriority(90);
|
|
||||||
|
|
||||||
setRestrictionChecker([](const SetupData &setup) {
|
|
||||||
return !setup.config.contains("android-no-sdk")
|
|
||||||
&& (setup.config.contains("android")
|
|
||||||
|| setup.platforms.contains("android"));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
} // Internal
|
|
||||||
} // Android
|
|
@@ -1,40 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
**
|
|
||||||
** Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
|
|
||||||
** 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 <qtsupport/qtversionfactory.h>
|
|
||||||
|
|
||||||
namespace Android {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class AndroidQtVersionFactory : public QtSupport::QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
AndroidQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace Android
|
|
@@ -15,7 +15,6 @@ HEADERS += \
|
|||||||
iossettingswidget.h \
|
iossettingswidget.h \
|
||||||
iosrunner.h \
|
iosrunner.h \
|
||||||
iosdsymbuildstep.h \
|
iosdsymbuildstep.h \
|
||||||
iosqtversionfactory.h \
|
|
||||||
iosqtversion.h \
|
iosqtversion.h \
|
||||||
iosplugin.h \
|
iosplugin.h \
|
||||||
iosdevicefactory.h \
|
iosdevicefactory.h \
|
||||||
@@ -42,7 +41,6 @@ SOURCES += \
|
|||||||
iossettingswidget.cpp \
|
iossettingswidget.cpp \
|
||||||
iosrunner.cpp \
|
iosrunner.cpp \
|
||||||
iosdsymbuildstep.cpp \
|
iosdsymbuildstep.cpp \
|
||||||
iosqtversionfactory.cpp \
|
|
||||||
iosqtversion.cpp \
|
iosqtversion.cpp \
|
||||||
iosplugin.cpp \
|
iosplugin.cpp \
|
||||||
iosdevicefactory.cpp \
|
iosdevicefactory.cpp \
|
||||||
|
@@ -47,8 +47,6 @@ QtcPlugin {
|
|||||||
"iosprobe.h",
|
"iosprobe.h",
|
||||||
"iosqtversion.cpp",
|
"iosqtversion.cpp",
|
||||||
"iosqtversion.h",
|
"iosqtversion.h",
|
||||||
"iosqtversionfactory.cpp",
|
|
||||||
"iosqtversionfactory.h",
|
|
||||||
"iosrunconfiguration.cpp",
|
"iosrunconfiguration.cpp",
|
||||||
"iosrunconfiguration.h",
|
"iosrunconfiguration.h",
|
||||||
"iosrunner.cpp",
|
"iosrunner.cpp",
|
||||||
|
@@ -32,7 +32,7 @@
|
|||||||
#include "iosdeploystep.h"
|
#include "iosdeploystep.h"
|
||||||
#include "iosdevicefactory.h"
|
#include "iosdevicefactory.h"
|
||||||
#include "iosdsymbuildstep.h"
|
#include "iosdsymbuildstep.h"
|
||||||
#include "iosqtversionfactory.h"
|
#include "iosqtversion.h"
|
||||||
#include "iosrunner.h"
|
#include "iosrunner.h"
|
||||||
#include "iossettingspage.h"
|
#include "iossettingspage.h"
|
||||||
#include "iossimulator.h"
|
#include "iossimulator.h"
|
||||||
|
@@ -108,3 +108,16 @@ QSet<Core::Id> IosQtVersion::targetDeviceTypes() const
|
|||||||
// iOS Qt version supports ios devices as well as simulator.
|
// iOS Qt version supports ios devices as well as simulator.
|
||||||
return {Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE};
|
return {Constants::IOS_DEVICE_TYPE, Constants::IOS_SIMULATOR_TYPE};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
IosQtVersionFactory::IosQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new IosQtVersion; });
|
||||||
|
setSupportedType(Constants::IOSQT);
|
||||||
|
setPriority(90);
|
||||||
|
setRestrictionChecker([](const SetupData &setup) {
|
||||||
|
return setup.platforms.contains("ios");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <qtsupport/baseqtversion.h>
|
#include <qtsupport/baseqtversion.h>
|
||||||
|
#include <qtsupport/qtversionfactory.h>
|
||||||
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
|
||||||
@@ -54,5 +55,11 @@ public:
|
|||||||
QString description() const override;
|
QString description() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class IosQtVersionFactory : public QtSupport::QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
IosQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Ios
|
} // namespace Ios
|
||||||
|
@@ -1,45 +0,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.
|
|
||||||
**
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include "iosqtversionfactory.h"
|
|
||||||
#include "iosqtversion.h"
|
|
||||||
#include "iosconstants.h"
|
|
||||||
|
|
||||||
namespace Ios {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
IosQtVersionFactory::IosQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new IosQtVersion; });
|
|
||||||
setSupportedType(Constants::IOSQT);
|
|
||||||
setPriority(90);
|
|
||||||
|
|
||||||
setRestrictionChecker([](const SetupData &setup) {
|
|
||||||
return setup.platforms.contains("ios");
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
} // Internal
|
|
||||||
} // Ios
|
|
@@ -1,40 +0,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 <qtsupport/qtversionfactory.h>
|
|
||||||
|
|
||||||
namespace Ios {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class IosQtVersionFactory : public QtSupport::QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
IosQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace Ios
|
|
@@ -10,7 +10,6 @@ SOURCES += qnxplugin.cpp \
|
|||||||
qnxrunconfiguration.cpp \
|
qnxrunconfiguration.cpp \
|
||||||
qnxanalyzesupport.cpp \
|
qnxanalyzesupport.cpp \
|
||||||
qnxdebugsupport.cpp \
|
qnxdebugsupport.cpp \
|
||||||
qnxqtversionfactory.cpp \
|
|
||||||
qnxqtversion.cpp \
|
qnxqtversion.cpp \
|
||||||
qnxdevice.cpp \
|
qnxdevice.cpp \
|
||||||
qnxdevicetester.cpp \
|
qnxdevicetester.cpp \
|
||||||
@@ -35,7 +34,6 @@ HEADERS += qnxplugin.h\
|
|||||||
qnxrunconfiguration.h \
|
qnxrunconfiguration.h \
|
||||||
qnxanalyzesupport.h \
|
qnxanalyzesupport.h \
|
||||||
qnxdebugsupport.h \
|
qnxdebugsupport.h \
|
||||||
qnxqtversionfactory.h \
|
|
||||||
qnxqtversion.h \
|
qnxqtversion.h \
|
||||||
qnxdevice.h \
|
qnxdevice.h \
|
||||||
qnxdevicetester.h \
|
qnxdevicetester.h \
|
||||||
|
@@ -57,8 +57,6 @@ QtcPlugin {
|
|||||||
"qnxplugin.h",
|
"qnxplugin.h",
|
||||||
"qnxqtversion.cpp",
|
"qnxqtversion.cpp",
|
||||||
"qnxqtversion.h",
|
"qnxqtversion.h",
|
||||||
"qnxqtversionfactory.cpp",
|
|
||||||
"qnxqtversionfactory.h",
|
|
||||||
"qnxrunconfiguration.cpp",
|
"qnxrunconfiguration.cpp",
|
||||||
"qnxrunconfiguration.h",
|
"qnxrunconfiguration.h",
|
||||||
"qnxutils.cpp",
|
"qnxutils.cpp",
|
||||||
|
@@ -32,7 +32,6 @@
|
|||||||
#include "qnxdevice.h"
|
#include "qnxdevice.h"
|
||||||
#include "qnxdevicefactory.h"
|
#include "qnxdevicefactory.h"
|
||||||
#include "qnxqtversion.h"
|
#include "qnxqtversion.h"
|
||||||
#include "qnxqtversionfactory.h"
|
|
||||||
#include "qnxrunconfiguration.h"
|
#include "qnxrunconfiguration.h"
|
||||||
#include "qnxsettingspage.h"
|
#include "qnxsettingspage.h"
|
||||||
#include "qnxtoolchain.h"
|
#include "qnxtoolchain.h"
|
||||||
|
@@ -199,5 +199,16 @@ QList<Utils::EnvironmentItem> QnxQtVersion::environment() const
|
|||||||
return QnxUtils::qnxEnvironment(sdpPath());
|
return QnxUtils::qnxEnvironment(sdpPath());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
QnxQtVersionFactory::QnxQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new QnxQtVersion; });
|
||||||
|
setSupportedType(Constants::QNX_QNX_QT);
|
||||||
|
setPriority(50);
|
||||||
|
setRestrictionChecker([](const SetupData &setup) { return setup.isQnx; });
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Qnx
|
} // namespace Qnx
|
||||||
|
@@ -29,6 +29,7 @@
|
|||||||
#include "qnxqtversion.h"
|
#include "qnxqtversion.h"
|
||||||
|
|
||||||
#include <qtsupport/baseqtversion.h>
|
#include <qtsupport/baseqtversion.h>
|
||||||
|
#include <qtsupport/qtversionfactory.h>
|
||||||
|
|
||||||
#include <utils/environment.h>
|
#include <utils/environment.h>
|
||||||
|
|
||||||
@@ -85,5 +86,11 @@ private:
|
|||||||
mutable QList<Utils::EnvironmentItem> m_qnxEnv;
|
mutable QList<Utils::EnvironmentItem> m_qnxEnv;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class QnxQtVersionFactory : public QtSupport::QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
QnxQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace Qnx
|
} // namespace Qnx
|
||||||
|
@@ -1,41 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
**
|
|
||||||
** Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
|
||||||
** Contact: KDAB (info@kdab.com)
|
|
||||||
**
|
|
||||||
** 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 "qnxqtversionfactory.h"
|
|
||||||
|
|
||||||
#include "qnxconstants.h"
|
|
||||||
#include "qnxqtversion.h"
|
|
||||||
|
|
||||||
using namespace Qnx;
|
|
||||||
using namespace Qnx::Internal;
|
|
||||||
|
|
||||||
QnxQtVersionFactory::QnxQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new QnxQtVersion; });
|
|
||||||
setSupportedType(Constants::QNX_QNX_QT);
|
|
||||||
setPriority(50);
|
|
||||||
setRestrictionChecker([](const SetupData &setup) { return setup.isQnx; });
|
|
||||||
}
|
|
||||||
|
|
@@ -1,40 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
**
|
|
||||||
** Copyright (C) 2016 BlackBerry Limited. All rights reserved.
|
|
||||||
** Contact: KDAB (info@kdab.com)
|
|
||||||
**
|
|
||||||
** 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 <qtsupport/qtversionfactory.h>
|
|
||||||
|
|
||||||
namespace Qnx {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class QnxQtVersionFactory : public QtSupport::QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
QnxQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace Qnx
|
|
@@ -38,7 +38,7 @@
|
|||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
|
|
||||||
using namespace QtSupport;
|
namespace QtSupport {
|
||||||
|
|
||||||
DesktopQtVersion::DesktopQtVersion()
|
DesktopQtVersion::DesktopQtVersion()
|
||||||
: BaseQtVersion()
|
: BaseQtVersion()
|
||||||
@@ -119,3 +119,18 @@ QString DesktopQtVersion::qmlsceneCommand() const
|
|||||||
|
|
||||||
DesktopQtVersion::DesktopQtVersion(const DesktopQtVersion &other) = default;
|
DesktopQtVersion::DesktopQtVersion(const DesktopQtVersion &other) = default;
|
||||||
|
|
||||||
|
|
||||||
|
namespace Internal {
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
DesktopQtVersionFactory::DesktopQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new DesktopQtVersion; });
|
||||||
|
setSupportedType(QtSupport::Constants::DESKTOPQT);
|
||||||
|
setPriority(0); // Lowest of all, we want to be the fallback
|
||||||
|
// No further restrictions. We are the fallback :) so we don't care what kind of qt it is.
|
||||||
|
}
|
||||||
|
|
||||||
|
} // Internal
|
||||||
|
} // QtSupport
|
||||||
|
@@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include <qtsupport/qtversionfactory.h>
|
||||||
|
|
||||||
#include "baseqtversion.h"
|
#include "baseqtversion.h"
|
||||||
|
|
||||||
namespace QtSupport {
|
namespace QtSupport {
|
||||||
@@ -58,4 +60,13 @@ private:
|
|||||||
mutable QString m_qmlsceneCommand;
|
mutable QString m_qmlsceneCommand;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
namespace Internal {
|
||||||
|
|
||||||
|
class DesktopQtVersionFactory : public QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
DesktopQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
|
} // Internal
|
||||||
} // QtSupport
|
} // QtSupport
|
||||||
|
@@ -1,39 +0,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.
|
|
||||||
**
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include "desktopqtversionfactory.h"
|
|
||||||
#include "desktopqtversion.h"
|
|
||||||
#include <qtsupport/qtsupportconstants.h>
|
|
||||||
|
|
||||||
using namespace QtSupport;
|
|
||||||
using namespace QtSupport::Internal;
|
|
||||||
|
|
||||||
DesktopQtVersionFactory::DesktopQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new DesktopQtVersion; });
|
|
||||||
setSupportedType(Constants::DESKTOPQT);
|
|
||||||
setPriority(0); // Lowest of all, we want to be the fallback
|
|
||||||
// No further restrictions. We are the fallback :) so we don't care what kind of qt it is.
|
|
||||||
}
|
|
@@ -1,40 +0,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 DesktopQtVersionFactory : public QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
DesktopQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // Internal
|
|
||||||
} // QtSupport
|
|
@@ -28,7 +28,6 @@ HEADERS += \
|
|||||||
exampleslistmodel.h \
|
exampleslistmodel.h \
|
||||||
screenshotcropper.h \
|
screenshotcropper.h \
|
||||||
qtconfigwidget.h \
|
qtconfigwidget.h \
|
||||||
desktopqtversionfactory.h \
|
|
||||||
desktopqtversion.h \
|
desktopqtversion.h \
|
||||||
uicgenerator.h \
|
uicgenerator.h \
|
||||||
qscxmlcgenerator.h
|
qscxmlcgenerator.h
|
||||||
@@ -53,7 +52,6 @@ SOURCES += \
|
|||||||
exampleslistmodel.cpp \
|
exampleslistmodel.cpp \
|
||||||
screenshotcropper.cpp \
|
screenshotcropper.cpp \
|
||||||
qtconfigwidget.cpp \
|
qtconfigwidget.cpp \
|
||||||
desktopqtversionfactory.cpp \
|
|
||||||
desktopqtversion.cpp \
|
desktopqtversion.cpp \
|
||||||
uicgenerator.cpp \
|
uicgenerator.cpp \
|
||||||
qscxmlcgenerator.cpp
|
qscxmlcgenerator.cpp
|
||||||
|
@@ -104,8 +104,8 @@ Project {
|
|||||||
Group {
|
Group {
|
||||||
name: "QtVersion"
|
name: "QtVersion"
|
||||||
files: [
|
files: [
|
||||||
"desktopqtversion.cpp", "desktopqtversion.h",
|
"desktopqtversion.cpp",
|
||||||
"desktopqtversionfactory.cpp", "desktopqtversionfactory.h",
|
"desktopqtversion.h",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -27,14 +27,17 @@
|
|||||||
|
|
||||||
#include "codegenerator.h"
|
#include "codegenerator.h"
|
||||||
#include "codegensettingspage.h"
|
#include "codegensettingspage.h"
|
||||||
#include "desktopqtversionfactory.h"
|
#include "desktopqtversion.h"
|
||||||
#include "gettingstartedwelcomepage.h"
|
#include "gettingstartedwelcomepage.h"
|
||||||
#include "qtkitinformation.h"
|
#include "qtkitinformation.h"
|
||||||
#include "qtoptionspage.h"
|
#include "qtoptionspage.h"
|
||||||
|
#include "qtsupportconstants.h"
|
||||||
|
#include "qtversionfactory.h"
|
||||||
#include "qtversionmanager.h"
|
#include "qtversionmanager.h"
|
||||||
#include "uicgenerator.h"
|
#include "uicgenerator.h"
|
||||||
#include "qscxmlcgenerator.h"
|
#include "qscxmlcgenerator.h"
|
||||||
|
|
||||||
|
#include "desktopqtversion.h"
|
||||||
#include "profilereader.h"
|
#include "profilereader.h"
|
||||||
|
|
||||||
#include <coreplugin/icore.h>
|
#include <coreplugin/icore.h>
|
||||||
|
@@ -60,5 +60,25 @@ QSet<Core::Id> EmbeddedLinuxQtVersion::targetDeviceTypes() const
|
|||||||
return {Constants::GenericLinuxOsType};
|
return {Constants::GenericLinuxOsType};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
EmbeddedLinuxQtVersionFactory::EmbeddedLinuxQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new EmbeddedLinuxQtVersion; });
|
||||||
|
setSupportedType(RemoteLinux::Constants::EMBEDDED_LINUX_QT);
|
||||||
|
setPriority(10);
|
||||||
|
|
||||||
|
setRestrictionChecker([](const SetupData &) {
|
||||||
|
EmbeddedLinuxQtVersion tempVersion;
|
||||||
|
QList<ProjectExplorer::Abi> abis = tempVersion.qtAbis();
|
||||||
|
|
||||||
|
// Note: This fails for e.g. intel/meego cross builds on x86 linux machines.
|
||||||
|
return abis.count() == 1
|
||||||
|
&& abis.at(0).os() == ProjectExplorer::Abi::LinuxOS
|
||||||
|
&& !ProjectExplorer::Abi::hostAbi().isCompatibleWith(abis.at(0));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <qtsupport/baseqtversion.h>
|
#include <qtsupport/baseqtversion.h>
|
||||||
|
#include <qtsupport/qtversionfactory.h>
|
||||||
|
|
||||||
namespace RemoteLinux {
|
namespace RemoteLinux {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
@@ -46,5 +47,11 @@ public:
|
|||||||
QSet<Core::Id> targetDeviceTypes() const override;
|
QSet<Core::Id> targetDeviceTypes() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class EmbeddedLinuxQtVersionFactory : public QtSupport::QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
EmbeddedLinuxQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
} // namespace Internal
|
} // namespace Internal
|
||||||
} // namespace RemoteLinux
|
} // namespace RemoteLinux
|
||||||
|
@@ -1,52 +0,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.
|
|
||||||
**
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include "embeddedlinuxqtversionfactory.h"
|
|
||||||
|
|
||||||
#include "embeddedlinuxqtversion.h"
|
|
||||||
#include "remotelinux_constants.h"
|
|
||||||
|
|
||||||
namespace RemoteLinux {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
EmbeddedLinuxQtVersionFactory::EmbeddedLinuxQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new EmbeddedLinuxQtVersion; });
|
|
||||||
setSupportedType(RemoteLinux::Constants::EMBEDDED_LINUX_QT);
|
|
||||||
setPriority(10);
|
|
||||||
|
|
||||||
setRestrictionChecker([](const SetupData &) {
|
|
||||||
EmbeddedLinuxQtVersion tempVersion;
|
|
||||||
QList<ProjectExplorer::Abi> abis = tempVersion.qtAbis();
|
|
||||||
|
|
||||||
// Note: This fails for e.g. intel/meego cross builds on x86 linux machines.
|
|
||||||
return abis.count() == 1
|
|
||||||
&& abis.at(0).os() == ProjectExplorer::Abi::LinuxOS
|
|
||||||
&& !ProjectExplorer::Abi::hostAbi().isCompatibleWith(abis.at(0));
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
} // namespace Internal
|
|
||||||
} // namespace RemoteLinux
|
|
@@ -1,40 +0,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 <qtsupport/qtversionfactory.h>
|
|
||||||
|
|
||||||
namespace RemoteLinux {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class EmbeddedLinuxQtVersionFactory : public QtSupport::QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
EmbeddedLinuxQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // Internal
|
|
||||||
} // RemoteLinux
|
|
@@ -4,7 +4,6 @@ include(../../qtcreatorplugin.pri)
|
|||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
embeddedlinuxqtversion.h \
|
embeddedlinuxqtversion.h \
|
||||||
embeddedlinuxqtversionfactory.h \
|
|
||||||
remotelinuxenvironmentaspect.h \
|
remotelinuxenvironmentaspect.h \
|
||||||
remotelinuxenvironmentaspectwidget.h \
|
remotelinuxenvironmentaspectwidget.h \
|
||||||
remotelinuxplugin.h \
|
remotelinuxplugin.h \
|
||||||
@@ -49,7 +48,6 @@ HEADERS += \
|
|||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
embeddedlinuxqtversion.cpp \
|
embeddedlinuxqtversion.cpp \
|
||||||
embeddedlinuxqtversionfactory.cpp \
|
|
||||||
remotelinuxenvironmentaspect.cpp \
|
remotelinuxenvironmentaspect.cpp \
|
||||||
remotelinuxenvironmentaspectwidget.cpp \
|
remotelinuxenvironmentaspectwidget.cpp \
|
||||||
remotelinuxplugin.cpp \
|
remotelinuxplugin.cpp \
|
||||||
|
@@ -29,8 +29,6 @@ Project {
|
|||||||
"deploymenttimeinfo.h",
|
"deploymenttimeinfo.h",
|
||||||
"embeddedlinuxqtversion.cpp",
|
"embeddedlinuxqtversion.cpp",
|
||||||
"embeddedlinuxqtversion.h",
|
"embeddedlinuxqtversion.h",
|
||||||
"embeddedlinuxqtversionfactory.cpp",
|
|
||||||
"embeddedlinuxqtversionfactory.h",
|
|
||||||
"genericdirectuploadservice.cpp",
|
"genericdirectuploadservice.cpp",
|
||||||
"genericdirectuploadservice.h",
|
"genericdirectuploadservice.h",
|
||||||
"genericdirectuploadstep.cpp",
|
"genericdirectuploadstep.cpp",
|
||||||
|
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#include "remotelinuxplugin.h"
|
#include "remotelinuxplugin.h"
|
||||||
|
|
||||||
#include "embeddedlinuxqtversionfactory.h"
|
#include "embeddedlinuxqtversion.h"
|
||||||
#include "genericlinuxdeviceconfigurationfactory.h"
|
#include "genericlinuxdeviceconfigurationfactory.h"
|
||||||
#include "remotelinux_constants.h"
|
#include "remotelinux_constants.h"
|
||||||
#include "remotelinuxqmltoolingsupport.h"
|
#include "remotelinuxqmltoolingsupport.h"
|
||||||
|
@@ -10,7 +10,6 @@ HEADERS += \
|
|||||||
winrtphoneqtversion.h \
|
winrtphoneqtversion.h \
|
||||||
winrtplugin.h \
|
winrtplugin.h \
|
||||||
winrtqtversion.h \
|
winrtqtversion.h \
|
||||||
winrtqtversionfactory.h \
|
|
||||||
winrtrunconfiguration.h \
|
winrtrunconfiguration.h \
|
||||||
winrtruncontrol.h \
|
winrtruncontrol.h \
|
||||||
winrtrunnerhelper.h
|
winrtrunnerhelper.h
|
||||||
@@ -24,7 +23,6 @@ SOURCES += \
|
|||||||
winrtphoneqtversion.cpp \
|
winrtphoneqtversion.cpp \
|
||||||
winrtplugin.cpp \
|
winrtplugin.cpp \
|
||||||
winrtqtversion.cpp \
|
winrtqtversion.cpp \
|
||||||
winrtqtversionfactory.cpp \
|
|
||||||
winrtrunconfiguration.cpp \
|
winrtrunconfiguration.cpp \
|
||||||
winrtruncontrol.cpp \
|
winrtruncontrol.cpp \
|
||||||
winrtrunnerhelper.cpp
|
winrtrunnerhelper.cpp
|
||||||
|
@@ -29,8 +29,6 @@ QtcPlugin {
|
|||||||
"winrtplugin.h",
|
"winrtplugin.h",
|
||||||
"winrtqtversion.cpp",
|
"winrtqtversion.cpp",
|
||||||
"winrtqtversion.h",
|
"winrtqtversion.h",
|
||||||
"winrtqtversionfactory.cpp",
|
|
||||||
"winrtqtversionfactory.h",
|
|
||||||
"winrtrunconfiguration.cpp",
|
"winrtrunconfiguration.cpp",
|
||||||
"winrtrunconfiguration.h",
|
"winrtrunconfiguration.h",
|
||||||
"winrtruncontrol.cpp",
|
"winrtruncontrol.cpp",
|
||||||
|
@@ -55,5 +55,16 @@ QSet<Core::Id> WinRtPhoneQtVersion::targetDeviceTypes() const
|
|||||||
return {Constants::WINRT_DEVICE_TYPE_PHONE, Constants::WINRT_DEVICE_TYPE_EMULATOR};
|
return {Constants::WINRT_DEVICE_TYPE_PHONE, Constants::WINRT_DEVICE_TYPE_EMULATOR};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
WinRtPhoneQtVersionFactory::WinRtPhoneQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new WinRtPhoneQtVersion; });
|
||||||
|
setSupportedType(Constants::WINRT_WINPHONEQT);
|
||||||
|
setRestrictionChecker([](const SetupData &setup) { return setup.platforms.contains("winphone"); });
|
||||||
|
setPriority(10);
|
||||||
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
} // WinRt
|
} // WinRt
|
||||||
|
@@ -42,5 +42,11 @@ public:
|
|||||||
QSet<Core::Id> targetDeviceTypes() const override;
|
QSet<Core::Id> targetDeviceTypes() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class WinRtPhoneQtVersionFactory : public QtSupport::QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
WinRtPhoneQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
} // WinRt
|
} // WinRt
|
||||||
|
@@ -28,7 +28,8 @@
|
|||||||
#include "winrtdevice.h"
|
#include "winrtdevice.h"
|
||||||
#include "winrtdevicefactory.h"
|
#include "winrtdevicefactory.h"
|
||||||
#include "winrtdeployconfiguration.h"
|
#include "winrtdeployconfiguration.h"
|
||||||
#include "winrtqtversionfactory.h"
|
#include "winrtqtversion.h"
|
||||||
|
#include "winrtphoneqtversion.h"
|
||||||
#include "winrtrunconfiguration.h"
|
#include "winrtrunconfiguration.h"
|
||||||
#include "winrtruncontrol.h"
|
#include "winrtruncontrol.h"
|
||||||
#include "winrtdebugsupport.h"
|
#include "winrtdebugsupport.h"
|
||||||
|
@@ -68,5 +68,16 @@ QSet<Core::Id> WinRtQtVersion::targetDeviceTypes() const
|
|||||||
return {Constants::WINRT_DEVICE_TYPE_LOCAL, Constants::WINRT_DEVICE_TYPE_EMULATOR};
|
return {Constants::WINRT_DEVICE_TYPE_LOCAL, Constants::WINRT_DEVICE_TYPE_EMULATOR};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Factory
|
||||||
|
|
||||||
|
WinRtQtVersionFactory::WinRtQtVersionFactory()
|
||||||
|
{
|
||||||
|
setQtVersionCreator([] { return new WinRtQtVersion; });
|
||||||
|
setSupportedType(Constants::WINRT_WINRTQT);
|
||||||
|
setRestrictionChecker([](const SetupData &setup) { return setup.platforms.contains("winrt"); });
|
||||||
|
setPriority(10);
|
||||||
|
}
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
} // WinRt
|
} // WinRt
|
||||||
|
@@ -26,6 +26,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <qtsupport/baseqtversion.h>
|
#include <qtsupport/baseqtversion.h>
|
||||||
|
#include <qtsupport/qtversionfactory.h>
|
||||||
|
|
||||||
namespace WinRt {
|
namespace WinRt {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
@@ -45,5 +46,11 @@ public:
|
|||||||
QSet<Core::Id> targetDeviceTypes() const override;
|
QSet<Core::Id> targetDeviceTypes() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class WinRtQtVersionFactory : public QtSupport::QtVersionFactory
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
WinRtQtVersionFactory();
|
||||||
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
} // WinRt
|
} // WinRt
|
||||||
|
@@ -1,51 +0,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.
|
|
||||||
**
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
#include "winrtqtversionfactory.h"
|
|
||||||
|
|
||||||
#include "winrtconstants.h"
|
|
||||||
#include "winrtphoneqtversion.h"
|
|
||||||
|
|
||||||
namespace WinRt {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
WinRtQtVersionFactory::WinRtQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new WinRtQtVersion; });
|
|
||||||
setSupportedType(Constants::WINRT_WINRTQT);
|
|
||||||
setRestrictionChecker([](const SetupData &setup) { return setup.platforms.contains("winrt"); });
|
|
||||||
setPriority(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
WinRtPhoneQtVersionFactory::WinRtPhoneQtVersionFactory()
|
|
||||||
{
|
|
||||||
setQtVersionCreator([] { return new WinRtPhoneQtVersion; });
|
|
||||||
setSupportedType(Constants::WINRT_WINPHONEQT);
|
|
||||||
setRestrictionChecker([](const SetupData &setup) { return setup.platforms.contains("winphone"); });
|
|
||||||
setPriority(10);
|
|
||||||
}
|
|
||||||
|
|
||||||
} // Internal
|
|
||||||
} // WinRt
|
|
@@ -1,46 +0,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 <qtsupport/qtversionfactory.h>
|
|
||||||
|
|
||||||
namespace WinRt {
|
|
||||||
namespace Internal {
|
|
||||||
|
|
||||||
class WinRtQtVersionFactory : public QtSupport::QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
WinRtQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
class WinRtPhoneQtVersionFactory : public QtSupport::QtVersionFactory
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
WinRtPhoneQtVersionFactory();
|
|
||||||
};
|
|
||||||
|
|
||||||
} // Internal
|
|
||||||
} // WinRt
|
|
Reference in New Issue
Block a user