forked from qt-creator/qt-creator
Autotools: Remove dependency on plugin object pool
Change-Id: I402e84d2702faf58b18ce896ebda5501966e5c9d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user