1
/**************************************************************************
3
** Copyright (C) 2014 BlackBerry Limited. All rights reserved.
5
** Contact: BlackBerry (qt@blackberry.com)
6
** Contact: KDAB (info@kdab.com)
8
** This file is part of Qt Creator.
10
** Commercial License Usage
11
** Licensees holding valid commercial Qt licenses may use this file in
12
** accordance with the commercial license agreement provided with the
13
** Software or, alternatively, in accordance with the terms contained in
14
** a written agreement between you and Digia. For licensing terms and
15
** conditions see http://qt.digia.com/licensing. For further information
16
** use the contact form at http://qt.digia.com/contact-us.
18
** GNU Lesser General Public License Usage
19
** Alternatively, this file may be used under the terms of the GNU Lesser
20
** General Public License version 2.1 as published by the Free Software
21
** Foundation and appearing in the file LICENSE.LGPL included in the
22
** packaging of this file. Please review the following information to
23
** ensure the GNU Lesser General Public License version 2.1 requirements
24
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
26
** In addition, as a special exception, Digia gives you certain additional
27
** rights. These rights are described in the Digia Qt LGPL Exception
28
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
30
****************************************************************************/
32
#ifndef BLACKBERRYCONFIGURATIONS_H
33
#define BLACKBERRYCONFIGURATIONS_H
36
#include "blackberryversionnumber.h"
37
#include "qnxconstants.h"
39
#include <utils/environment.h>
40
#include <utils/fileutils.h>
42
#include <projectexplorer/abi.h>
43
#include <projectexplorer/kit.h>
46
#include <QCoreApplication>
48
namespace QtSupport { class BaseQtVersion; }
49
namespace Debugger { class DebuggerItem; }
54
class QnxAbstractQtVersion;
57
class BlackBerryApiLevelConfiguration
59
Q_DECLARE_TR_FUNCTIONS(Qnx::Internal::BlackBerryApiLevelConfiguration)
61
BlackBerryApiLevelConfiguration(const NdkInstallInformation &ndkInstallInfo);
62
BlackBerryApiLevelConfiguration(const Utils::FileName &ndkEnvFile);
63
BlackBerryApiLevelConfiguration(const QVariantMap &data);
66
QString ndkPath() const;
67
QString displayName() const;
68
QString targetName() const;
69
QString qnxHost() const;
70
BlackBerryVersionNumber version() const;
71
bool isAutoDetected() const;
72
Utils::FileName autoDetectionSource() const;
73
bool isActive() const;
75
Utils::FileName ndkEnvFile() const;
76
Utils::FileName qmake4BinaryFile() const;
77
Utils::FileName qmake5BinaryFile() const;
78
Utils::FileName gccCompiler() const;
79
Utils::FileName deviceDebuger() const;
80
Utils::FileName simulatorDebuger() const;
81
Utils::FileName sysRoot() const;
82
QList<Utils::EnvironmentItem> qnxEnv() const;
83
QVariantMap toMap() const;
86
static void setFakeConfig(bool fakeConfig);
87
static bool fakeConfig();
91
QString m_displayName;
94
BlackBerryVersionNumber m_version;
95
Utils::FileName m_autoDetectionSource;
96
Utils::FileName m_ndkEnvFile;
97
Utils::FileName m_qmake4BinaryFile;
98
Utils::FileName m_qmake5BinaryFile;
99
Utils::FileName m_gccCompiler;
100
Utils::FileName m_deviceDebugger;
101
Utils::FileName m_simulatorDebugger;
102
Utils::FileName m_sysRoot;
103
QList<Utils::EnvironmentItem> m_qnxEnv;
107
QnxAbstractQtVersion* createQtVersion(
108
const Utils::FileName &qmakePath, Qnx::QnxArchitecture arch, const QString &versionName);
109
QnxToolChain* createToolChain(
110
ProjectExplorer::Abi abi, const QString &versionName);
111
QVariant createDebuggerItem(
112
QList<ProjectExplorer::Abi> abis, Qnx::QnxArchitecture arch, const QString &versionName);
113
ProjectExplorer::Kit* createKit(
114
QnxAbstractQtVersion* version, QnxToolChain* toolChain,
115
const QVariant &debuggerItemId);
118
static bool m_fakeConfig;
122
} // namespace Internal
125
#endif // BLACKBERRYCONFIGURATIONS_H