2022-08-19 15:59:36 +02:00
|
|
|
// Copyright (C) 2016 Openismus GmbH.
|
2022-12-21 10:12:09 +01:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
2011-11-29 14:19:28 +01:00
|
|
|
|
2016-02-03 17:21:12 +01:00
|
|
|
#pragma once
|
2011-11-29 14:19:28 +01:00
|
|
|
|
2019-08-13 12:47:11 +02:00
|
|
|
#include <projectexplorer/buildsystem.h>
|
2013-07-22 15:53:57 +02:00
|
|
|
|
2022-07-21 17:48:49 +02:00
|
|
|
#include <memory>
|
|
|
|
|
|
2021-08-30 10:58:08 +02:00
|
|
|
namespace CppEditor { class CppProjectUpdater; }
|
2017-02-06 16:59:53 +01:00
|
|
|
|
2022-09-29 17:11:01 +02:00
|
|
|
namespace AutotoolsProjectManager::Internal {
|
2017-02-28 16:31:07 +01:00
|
|
|
|
2011-11-29 14:19:28 +01:00
|
|
|
class MakefileParserThread;
|
|
|
|
|
|
2020-01-09 14:00:22 +01:00
|
|
|
class AutotoolsBuildSystem final : public ProjectExplorer::BuildSystem
|
2011-11-29 14:19:28 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2019-10-25 09:55:32 +02:00
|
|
|
explicit AutotoolsBuildSystem(ProjectExplorer::Target *target);
|
2020-01-09 14:00:22 +01:00
|
|
|
~AutotoolsBuildSystem() final;
|
2011-11-29 14:19:28 +01:00
|
|
|
|
2016-02-03 17:21:12 +01:00
|
|
|
private:
|
2019-10-25 09:55:32 +02:00
|
|
|
void triggerParsing() final;
|
2021-09-09 11:28:28 +02:00
|
|
|
QString name() const final { return QLatin1String("autotools"); }
|
2019-10-25 09:55:32 +02:00
|
|
|
|
2011-11-29 14:19:28 +01:00
|
|
|
/**
|
|
|
|
|
* Is invoked when the makefile parsing by m_makefileParserThread has
|
|
|
|
|
* been finished. Adds all sources and files into the project tree and
|
|
|
|
|
* takes care listen to file changes for Makefile.am and configure.ac
|
|
|
|
|
* files.
|
|
|
|
|
*/
|
|
|
|
|
void makefileParsingFinished();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* This function is in charge of the code completion.
|
|
|
|
|
*/
|
|
|
|
|
void updateCppCodeModel();
|
|
|
|
|
|
|
|
|
|
/// Return value for AutotoolsProject::files()
|
|
|
|
|
QStringList m_files;
|
|
|
|
|
|
|
|
|
|
/// Responsible for parsing the makefiles asynchronously in a thread
|
2022-07-21 17:48:49 +02:00
|
|
|
std::unique_ptr<MakefileParserThread> m_makefileParserThread;
|
2014-08-19 12:00:31 +02:00
|
|
|
|
2021-08-30 10:58:08 +02:00
|
|
|
CppEditor::CppProjectUpdater *m_cppCodeModelUpdater = nullptr;
|
2011-11-29 14:19:28 +01:00
|
|
|
};
|
|
|
|
|
|
2022-09-29 17:11:01 +02:00
|
|
|
} // AutotoolsProjectManager::Internal
|