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
|
|
|
|
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"
|
2023-07-28 18:46:13 +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
|
|
|
|
2024-01-15 10:23:50 +01:00
|
|
|
#include <extensionsystem/iplugin.h>
|
|
|
|
|
|
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:
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
|
2024-01-15 10:23:50 +01:00
|
|
|
class IosPlugin final : public ExtensionSystem::IPlugin
|
2018-02-08 09:24:22 +01:00
|
|
|
{
|
2024-01-15 10:23:50 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "Ios.json")
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2024-01-15 10:23:50 +01:00
|
|
|
~IosPlugin() final
|
|
|
|
|
{
|
|
|
|
|
delete d;
|
|
|
|
|
}
|
2018-02-08 09:24:22 +01:00
|
|
|
|
2024-01-15 10:23:50 +01:00
|
|
|
void initialize() final
|
|
|
|
|
{
|
|
|
|
|
qRegisterMetaType<Ios::IosToolHandler::Dict>("Ios::IosToolHandler::Dict");
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2024-01-18 17:58:40 +01:00
|
|
|
setupIosToolchain();
|
2024-01-26 13:43:06 +01:00
|
|
|
setupIosBuildConfiguration();
|
2024-01-18 17:58:40 +01:00
|
|
|
|
2024-01-15 10:23:50 +01:00
|
|
|
IosConfigurations::initialize();
|
|
|
|
|
|
|
|
|
|
d = new IosPluginPrivate;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
IosPluginPrivate *d = nullptr;
|
|
|
|
|
};
|
2013-04-25 16:02:17 +02:00
|
|
|
|
2023-01-06 15:54:09 +01:00
|
|
|
} // Internal::Ios
|
2024-01-15 10:23:50 +01:00
|
|
|
|
|
|
|
|
#include "iosplugin.moc"
|