2012-10-02 09:12:39 +02:00
|
|
|
/****************************************************************************
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2016-01-15 14:57:40 +01:00
|
|
|
** Copyright (C) 2016 The Qt Company Ltd.
|
|
|
|
|
** Contact: https://www.qt.io/licensing/
|
2010-12-10 19:02:19 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
** This file is part of Qt Creator.
|
2010-12-10 19:02:19 +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.
|
2010-12-10 19:02:19 +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-02-17 17:53:52 +01:00
|
|
|
**
|
2012-10-02 09:12:39 +02:00
|
|
|
****************************************************************************/
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2016-03-18 07:55:01 +01:00
|
|
|
#pragma once
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2015-03-12 11:20:18 +01:00
|
|
|
#include "qmakestep.h"
|
|
|
|
|
|
2016-08-24 15:53:50 +02:00
|
|
|
#include <qtsupport/qtprojectimporter.h>
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2013-08-13 10:52:57 +02:00
|
|
|
namespace QtSupport { class BaseQtVersion; }
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2013-10-16 11:02:37 +02:00
|
|
|
namespace QmakeProjectManager {
|
2013-08-13 10:52:57 +02:00
|
|
|
|
2013-10-29 14:22:31 +01:00
|
|
|
class QmakeProject;
|
2013-08-13 10:52:57 +02:00
|
|
|
|
2010-12-10 19:02:19 +01:00
|
|
|
namespace Internal {
|
|
|
|
|
|
2013-08-13 10:52:57 +02:00
|
|
|
// Documentation inside.
|
2016-08-24 15:53:50 +02:00
|
|
|
class QmakeProjectImporter : public QtSupport::QtProjectImporter
|
2010-12-10 19:02:19 +01:00
|
|
|
{
|
|
|
|
|
public:
|
2013-08-13 10:52:57 +02:00
|
|
|
QmakeProjectImporter(const QString &path);
|
2010-12-10 19:02:19 +01:00
|
|
|
|
2016-08-24 15:20:28 +02:00
|
|
|
QStringList importCandidates() final;
|
2012-04-24 15:49:09 +02:00
|
|
|
|
2010-12-10 19:02:19 +01:00
|
|
|
private:
|
2016-08-25 14:32:48 +02:00
|
|
|
QList<void *> examineDirectory(const Utils::FileName &importPath) const final;
|
|
|
|
|
bool matchKit(void *directoryData, const ProjectExplorer::Kit *k) const final;
|
|
|
|
|
ProjectExplorer::Kit *createKit(void *directoryData) const final;
|
|
|
|
|
QList<ProjectExplorer::BuildInfo *> buildInfoListForKit(const ProjectExplorer::Kit *k,
|
|
|
|
|
void *directoryData) const final;
|
|
|
|
|
|
|
|
|
|
|
2016-08-24 15:53:50 +02:00
|
|
|
ProjectExplorer::Kit *createTemporaryKit(const QtProjectImporter::QtVersionData &data,
|
2015-03-04 17:14:28 +01:00
|
|
|
const Utils::FileName &parsedSpec,
|
2016-08-24 15:20:28 +02:00
|
|
|
const QmakeProjectManager::QMakeStepConfig::TargetArchConfig &archConfig,
|
2016-08-25 14:32:48 +02:00
|
|
|
const QMakeStepConfig::OsType &osType) const;
|
2010-12-10 19:02:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace Internal
|
2013-10-16 11:02:37 +02:00
|
|
|
} // namespace QmakeProjectManager
|