2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 Openismus GmbH.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
|
2011-11-29 14:19:28 +01:00
|
|
|
|
|
|
|
#include "autotoolsprojectplugin.h"
|
2019-08-13 12:47:11 +02:00
|
|
|
|
2011-11-29 14:19:28 +01:00
|
|
|
#include "autogenstep.h"
|
|
|
|
#include "autoreconfstep.h"
|
2019-08-13 12:47:11 +02:00
|
|
|
#include "autotoolsbuildconfiguration.h"
|
|
|
|
#include "autotoolsbuildsystem.h"
|
|
|
|
#include "autotoolsprojectconstants.h"
|
2011-11-29 14:19:28 +01:00
|
|
|
#include "configurestep.h"
|
2019-08-13 12:47:11 +02:00
|
|
|
#include "makestep.h"
|
2017-03-03 18:16:34 +01:00
|
|
|
|
2019-08-13 12:47:11 +02:00
|
|
|
#include <coreplugin/icontext.h>
|
2019-10-25 09:55:32 +02:00
|
|
|
|
2020-01-09 14:00:22 +01:00
|
|
|
#include <projectexplorer/projectexplorerconstants.h>
|
2017-03-03 18:16:34 +01:00
|
|
|
#include <projectexplorer/projectmanager.h>
|
2019-10-25 09:55:32 +02:00
|
|
|
#include <projectexplorer/target.h>
|
2011-11-29 14:19:28 +01:00
|
|
|
|
2018-01-26 15:38:21 +01:00
|
|
|
namespace AutotoolsProjectManager {
|
|
|
|
namespace Internal {
|
2011-11-29 14:19:28 +01:00
|
|
|
|
2019-08-13 12:47:11 +02:00
|
|
|
AutotoolsProject::AutotoolsProject(const Utils::FilePath &fileName)
|
|
|
|
: Project(Constants::MAKEFILE_MIMETYPE, fileName)
|
|
|
|
{
|
|
|
|
setId(Constants::AUTOTOOLS_PROJECT_ID);
|
|
|
|
setProjectLanguages(Core::Context(ProjectExplorer::Constants::CXX_LANGUAGE_ID));
|
|
|
|
setDisplayName(projectDirectory().fileName());
|
|
|
|
|
|
|
|
setHasMakeInstallEquivalent(true);
|
|
|
|
|
2019-10-25 09:55:32 +02:00
|
|
|
setBuildSystemCreator([](ProjectExplorer::Target *t) { return new AutotoolsBuildSystem(t); });
|
2019-08-13 12:47:11 +02:00
|
|
|
}
|
|
|
|
|
2019-02-21 14:59:57 +01:00
|
|
|
class AutotoolsProjectPluginPrivate
|
2018-01-26 15:38:21 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
AutotoolsBuildConfigurationFactory buildConfigurationFactory;
|
|
|
|
MakeStepFactory makeStepFaactory;
|
|
|
|
AutogenStepFactory autogenStepFactory;
|
|
|
|
ConfigureStepFactory configureStepFactory;
|
|
|
|
AutoreconfStepFactory autoreconfStepFactory;
|
|
|
|
};
|
|
|
|
|
|
|
|
AutotoolsProjectPlugin::~AutotoolsProjectPlugin()
|
|
|
|
{
|
2019-02-21 14:59:57 +01:00
|
|
|
delete d;
|
2018-01-26 15:38:21 +01:00
|
|
|
}
|
2011-11-29 14:19:28 +01:00
|
|
|
|
|
|
|
void AutotoolsProjectPlugin::extensionsInitialized()
|
2016-02-03 17:21:12 +01:00
|
|
|
{ }
|
2011-11-29 14:19:28 +01:00
|
|
|
|
|
|
|
bool AutotoolsProjectPlugin::initialize(const QStringList &arguments,
|
|
|
|
QString *errorString)
|
|
|
|
{
|
2015-02-04 09:32:46 +01:00
|
|
|
Q_UNUSED(arguments)
|
|
|
|
Q_UNUSED(errorString)
|
2011-11-29 14:19:28 +01:00
|
|
|
|
2019-02-21 14:59:57 +01:00
|
|
|
d = new AutotoolsProjectPluginPrivate;
|
2017-03-03 18:16:34 +01:00
|
|
|
ProjectExplorer::ProjectManager::registerProjectType<AutotoolsProject>(Constants::MAKEFILE_MIMETYPE);
|
2011-11-29 14:19:28 +01:00
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
2018-01-26 15:38:21 +01:00
|
|
|
|
2019-08-13 12:47:11 +02:00
|
|
|
} // namespace Internal
|
2018-01-26 15:38:21 +01:00
|
|
|
} // AutotoolsProjectManager
|