Autotools: Introduce AutotoolsBuildSystem

Introduce AutotoolsBuildSystem and slim down AutotoolsProject.

Change-Id: I68296152f9ecd5d14198c8d0b36a06c2d1b162ec
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
Tobias Hunger
2019-08-13 12:47:11 +02:00
parent b7e4046a17
commit fb21b78444
15 changed files with 113 additions and 173 deletions

View File

@@ -26,19 +26,33 @@
****************************************************************************/
#include "autotoolsprojectplugin.h"
#include "autotoolsproject.h"
#include "autotoolsprojectconstants.h"
#include "autotoolsbuildconfiguration.h"
#include "makestep.h"
#include "autogenstep.h"
#include "autoreconfstep.h"
#include "autotoolsbuildconfiguration.h"
#include "autotoolsbuildsystem.h"
#include "autotoolsprojectconstants.h"
#include "configurestep.h"
#include "makestep.h"
#include <coreplugin/icontext.h>
#include <projectexplorer/projectmanager.h>
namespace AutotoolsProjectManager {
namespace Internal {
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);
setBuildSystem(std::make_unique<AutotoolsBuildSystem>(this));
}
class AutotoolsProjectPluginPrivate
{
public:
@@ -69,5 +83,5 @@ bool AutotoolsProjectPlugin::initialize(const QStringList &arguments,
return true;
}
} // Internal
} // namespace Internal
} // AutotoolsProjectManager