2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 The Qt Company Ltd.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2013-04-25 16:02:17 +02:00
|
|
|
|
|
|
|
|
#include "iosplugin.h"
|
|
|
|
|
|
2017-03-03 16:21:55 +01:00
|
|
|
#include "iosbuildconfiguration.h"
|
2013-11-04 11:11:56 +01:00
|
|
|
#include "iosbuildstep.h"
|
2013-04-25 16:02:17 +02:00
|
|
|
#include "iosconfigurations.h"
|
2013-11-04 11:11:56 +01:00
|
|
|
#include "iosconstants.h"
|
2019-01-30 17:30:24 +01:00
|
|
|
#include "iosdeploystep.h"
|
2019-02-20 19:13:28 +01:00
|
|
|
#include "iosdevice.h"
|
2014-03-12 21:25:28 +01:00
|
|
|
#include "iosdsymbuildstep.h"
|
2019-02-14 12:29:00 +01:00
|
|
|
#include "iosqtversion.h"
|
2017-07-14 10:12:37 +02:00
|
|
|
#include "iosrunner.h"
|
2013-04-25 16:02:17 +02:00
|
|
|
#include "iossettingspage.h"
|
2013-11-04 11:11:56 +01:00
|
|
|
#include "iossimulator.h"
|
2013-10-08 15:27:45 +02:00
|
|
|
#include "iostoolhandler.h"
|
2022-12-20 13:39:23 +01:00
|
|
|
#include "iostr.h"
|
2017-07-14 10:12:37 +02:00
|
|
|
#include "iosrunconfiguration.h"
|
2013-11-04 11:11:56 +01:00
|
|
|
|
2019-01-30 17:30:24 +01:00
|
|
|
#include <projectexplorer/deployconfiguration.h>
|
2017-07-14 10:12:37 +02:00
|
|
|
#include <projectexplorer/devicesupport/devicemanager.h>
|
|
|
|
|
#include <projectexplorer/runconfiguration.h>
|
|
|
|
|
|
|
|
|
|
using namespace ProjectExplorer;
|
2018-02-08 09:24:22 +01:00
|
|
|
using namespace QtSupport;
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2023-01-06 15:54:09 +01:00
|
|
|
namespace Ios::Internal {
|
2018-02-08 09:24:22 +01:00
|
|
|
|
2018-10-12 09:33:30 +03:00
|
|
|
Q_LOGGING_CATEGORY(iosLog, "qtc.ios.common", QtWarningMsg)
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2019-01-30 17:30:24 +01:00
|
|
|
class IosDeployConfigurationFactory : public DeployConfigurationFactory
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
IosDeployConfigurationFactory()
|
|
|
|
|
{
|
|
|
|
|
setConfigBaseId("Qt4ProjectManager.IosDeployConfiguration");
|
|
|
|
|
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
|
|
|
|
|
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
|
2022-12-20 13:39:23 +01:00
|
|
|
setDefaultDisplayName(Tr::tr("Deploy on iOS"));
|
2020-08-18 11:33:37 +02:00
|
|
|
addInitialStep(Constants::IOS_DEPLOY_STEP_ID);
|
2019-01-30 17:30:24 +01:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
2018-02-08 09:24:22 +01:00
|
|
|
class IosPluginPrivate
|
2013-10-08 15:27:45 +02:00
|
|
|
{
|
2018-02-08 09:24:22 +01:00
|
|
|
public:
|
2021-02-04 14:53:42 +01:00
|
|
|
IosQmakeBuildConfigurationFactory qmakeBuildConfigurationFactory;
|
|
|
|
|
IosCMakeBuildConfigurationFactory cmakeBuildConfigurationFactory;
|
2018-02-08 09:24:22 +01:00
|
|
|
IosToolChainFactory toolChainFactory;
|
|
|
|
|
IosRunConfigurationFactory runConfigurationFactory;
|
|
|
|
|
IosSettingsPage settingsPage;
|
|
|
|
|
IosQtVersionFactory qtVersionFactory;
|
|
|
|
|
IosDeviceFactory deviceFactory;
|
|
|
|
|
IosSimulatorFactory simulatorFactory;
|
|
|
|
|
IosBuildStepFactory buildStepFactory;
|
|
|
|
|
IosDeployStepFactory deployStepFactory;
|
|
|
|
|
IosDsymBuildStepFactory dsymBuildStepFactory;
|
|
|
|
|
IosDeployConfigurationFactory deployConfigurationFactory;
|
2023-01-06 15:54:09 +01:00
|
|
|
IosRunWorkerFactory runWorkerFactory;
|
|
|
|
|
IosDebugWorkerFactory debugWorkerFactory;
|
|
|
|
|
IosQmlProfilerWorkerFactory qmlProfilerWorkerFactory;
|
2018-02-08 09:24:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
IosPlugin::~IosPlugin()
|
|
|
|
|
{
|
|
|
|
|
delete d;
|
2013-10-08 15:27:45 +02:00
|
|
|
}
|
2013-04-25 16:02:17 +02:00
|
|
|
|
|
|
|
|
bool IosPlugin::initialize(const QStringList &arguments, QString *errorMessage)
|
|
|
|
|
{
|
2019-07-23 10:58:00 +02:00
|
|
|
Q_UNUSED(arguments)
|
|
|
|
|
Q_UNUSED(errorMessage)
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2018-02-08 09:24:22 +01:00
|
|
|
qRegisterMetaType<Ios::IosToolHandler::Dict>("Ios::IosToolHandler::Dict");
|
|
|
|
|
|
|
|
|
|
IosConfigurations::initialize();
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2018-02-08 09:24:22 +01:00
|
|
|
d = new IosPluginPrivate;
|
2013-11-04 11:11:56 +01:00
|
|
|
|
2018-02-08 09:24:22 +01:00
|
|
|
return true;
|
2013-04-25 16:02:17 +02:00
|
|
|
}
|
|
|
|
|
|
2023-01-06 15:54:09 +01:00
|
|
|
} // Internal::Ios
|