androidqtsupport.h 2.48 KB
Newer Older
1
/****************************************************************************
2
**
3 4
** Copyright (C) 2016 BogDan Vatra <bog_dan_ro@yahoo.com>
** Contact: https://www.qt.io/licensing/
5 6 7 8 9 10 11
**
** This file is part of Qt Creator.
**
** 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
12 13 14
** 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.
15
**
16 17 18 19 20 21 22
** 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.
23 24 25
**
****************************************************************************/

hjk's avatar
hjk committed
26
#pragma once
27

28 29
#include "android_global.h"

30 31 32 33 34 35
#include <QObject>
#include <QList>

namespace ProjectExplorer {
    class DeployConfiguration;
    class ProcessParameters;
36 37
    class Project;
    class Target;
38 39
}

40 41
namespace Utils { class FileName; }

42 43 44 45 46 47
namespace Android {

class ANDROID_EXPORT AndroidQtSupport : public QObject
{
    Q_OBJECT

48 49 50 51
protected:
    AndroidQtSupport();
    ~AndroidQtSupport();

52 53 54 55 56 57 58 59 60
public:
    enum BuildType {
        DebugBuild,
        ReleaseBuildUnsigned,
        ReleaseBuildSigned
    };

    virtual bool canHandle(const ProjectExplorer::Target *target) const = 0;
    virtual QStringList soLibSearchPath(const ProjectExplorer::Target *target) const = 0;
61
    virtual QStringList androidExtraLibs(const ProjectExplorer::Target *target) const = 0;
62
    virtual QStringList projectTargetApplications(const ProjectExplorer::Target *target) const = 0;
BogDan Vatra's avatar
BogDan Vatra committed
63
    virtual Utils::FileName apkPath(ProjectExplorer::Target *target) const;
64 65
    virtual Utils::FileName androiddeployqtPath(ProjectExplorer::Target *target) const = 0;
    virtual Utils::FileName androiddeployJsonPath(ProjectExplorer::Target *target) const = 0;
66 67
    virtual void manifestSaved(const ProjectExplorer::Target *target) = 0;
    virtual Utils::FileName manifestSourcePath(const ProjectExplorer::Target *target) = 0;
68 69
};

70
} // namespace Android