Ios: Use setup functions for a few factories

Change-Id: Ide05c2ca859454c1745e5c243af6a3d05131194c
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
hjk
2024-02-02 18:32:12 +01:00
parent 508189339d
commit 435b35ccfe
9 changed files with 93 additions and 78 deletions

View File

@@ -413,11 +413,20 @@ FilePath IosDeviceTypeAspect::localExecutable() const
// IosRunConfigurationFactory
IosRunConfigurationFactory::IosRunConfigurationFactory()
class IosRunConfigurationFactory final : public RunConfigurationFactory
{
registerRunConfiguration<IosRunConfiguration>(Constants::IOS_RUNCONFIG_ID);
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
public:
IosRunConfigurationFactory()
{
registerRunConfiguration<IosRunConfiguration>(Constants::IOS_RUNCONFIG_ID);
addSupportedTargetDeviceType(Constants::IOS_DEVICE_TYPE);
addSupportedTargetDeviceType(Constants::IOS_SIMULATOR_TYPE);
}
};
void setupIosRunConfiguration()
{
static IosRunConfigurationFactory theIosRunConfigurationFactory;
}
} // Ios::Internal