Autotools: Remove dependency on plugin object pool

Change-Id: I402e84d2702faf58b18ce896ebda5501966e5c9d
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
hjk
2018-01-26 15:38:21 +01:00
parent 53d14fbb48
commit 268efa4a0b
2 changed files with 28 additions and 12 deletions

View File

@@ -36,10 +36,23 @@
#include <projectexplorer/projectmanager.h>
#include <QStringList>
#include <QtPlugin>
namespace AutotoolsProjectManager {
namespace Internal {
using namespace AutotoolsProjectManager::Internal;
class AutotoolsProjectPluginRunData
{
public:
AutotoolsBuildConfigurationFactory buildConfigurationFactory;
MakeStepFactory makeStepFaactory;
AutogenStepFactory autogenStepFactory;
ConfigureStepFactory configureStepFactory;
AutoreconfStepFactory autoreconfStepFactory;
};
AutotoolsProjectPlugin::~AutotoolsProjectPlugin()
{
delete m_runData;
}
void AutotoolsProjectPlugin::extensionsInitialized()
{ }
@@ -50,13 +63,11 @@ bool AutotoolsProjectPlugin::initialize(const QStringList &arguments,
Q_UNUSED(arguments)
Q_UNUSED(errorString)
addAutoReleasedObject(new AutotoolsBuildConfigurationFactory);
addAutoReleasedObject(new MakeStepFactory);
addAutoReleasedObject(new AutogenStepFactory);
addAutoReleasedObject(new ConfigureStepFactory);
addAutoReleasedObject(new AutoreconfStepFactory);
m_runData = new AutotoolsProjectPluginRunData;
ProjectExplorer::ProjectManager::registerProjectType<AutotoolsProject>(Constants::MAKEFILE_MIMETYPE);
return true;
}
} // Internal
} // AutotoolsProjectManager