2016-01-15 14:57:40 +01:00
|
|
|
/****************************************************************************
|
2011-11-29 14:19:28 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 Openismus GmbH.
|
|
|
|
|
** Author: Peter Penz (ppenz@openismus.com)
|
|
|
|
|
** Author: Patricia Santana Cruz (patriciasantanacruz@gmail.com)
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2011-11-29 14:19:28 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2011-11-29 14:19:28 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** Commercial License Usage
|
|
|
|
|
** Licensees holding valid commercial Qt licenses may use this file in
|
|
|
|
|
** accordance with the commercial license agreement provided with the
|
|
|
|
|
** Software or, alternatively, in accordance with the terms contained in
|
2016-01-15 14:57:40 +01:00
|
|
|
** a written agreement between you and The Qt Company. For licensing terms
|
|
|
|
|
** and conditions see https://www.qt.io/terms-conditions. For further
|
|
|
|
|
** information use the contact form at https://www.qt.io/contact-us.
|
2011-11-29 14:19:28 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** GNU General Public License Usage
|
|
|
|
|
** Alternatively, this file may be used under the terms of the GNU
|
|
|
|
|
** General Public License version 3 as published by the Free Software
|
|
|
|
|
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
|
|
|
|
|
** included in the packaging of this file. Please review the following
|
|
|
|
|
** information to ensure the GNU General Public License requirements will
|
|
|
|
|
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
|
2011-11-29 14:19:28 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
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
|
|
|
|
2017-02-06 16:59:53 +01:00
|
|
|
namespace CppTools { class CppProjectUpdater; }
|
|
|
|
|
|
2011-11-29 14:19:28 +01:00
|
|
|
namespace AutotoolsProjectManager {
|
|
|
|
|
namespace Internal {
|
2017-02-28 16:31:07 +01:00
|
|
|
|
2011-11-29 14:19:28 +01:00
|
|
|
class MakefileParserThread;
|
|
|
|
|
|
2019-08-13 12:47:11 +02:00
|
|
|
class AutotoolsBuildSystem : public ProjectExplorer::BuildSystem
|
2011-11-29 14:19:28 +01:00
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2019-10-25 09:55:32 +02:00
|
|
|
explicit AutotoolsBuildSystem(ProjectExplorer::Target *target);
|
2019-08-13 12:47:11 +02:00
|
|
|
~AutotoolsBuildSystem() override;
|
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;
|
|
|
|
|
|
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
|
2016-02-03 17:21:12 +01:00
|
|
|
MakefileParserThread *m_makefileParserThread = nullptr;
|
2014-08-19 12:00:31 +02:00
|
|
|
|
2017-02-06 16:59:53 +01:00
|
|
|
CppTools::CppProjectUpdater *m_cppCodeModelUpdater = nullptr;
|
2011-11-29 14:19:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
|
|
|
|
} // namespace AutotoolsProjectManager
|