aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qnx/qnxutils.h
blob: 2fea51ccc639ff3c4a309aaddb27cb6225e590ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright (C) 2016 BlackBerry Limited. All rights reserved
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <projectexplorer/abi.h>

#include <utils/environment.h>
#include <utils/qtcassert.h>
#include <utils/filepath.h>

namespace Qnx::Internal {

class QnxTarget
{
public:
    QnxTarget(const Utils::FilePath &path, const ProjectExplorer::Abi &abi);

    QString shortDescription() const;
    QString cpuDir() const { return m_path.fileName(); }

    Utils::FilePath m_path;
    ProjectExplorer::Abi m_abi;
    Utils::FilePath m_debuggerPath;
};

namespace QnxUtils {
QString cpuDirFromAbi(const ProjectExplorer::Abi &abi);
QString cpuDirShortDescription(const QString &cpuDir);
Utils::EnvironmentItems qnxEnvironmentFromEnvFile(const Utils::FilePath &filePath);
Utils::EnvironmentItems qnxEnvironment(const Utils::FilePath &sdpPath);
QList<QnxTarget> findTargets(const Utils::FilePath &basePath);
ProjectExplorer::Abi convertAbi(const ProjectExplorer::Abi &abi);
ProjectExplorer::Abis convertAbis(const ProjectExplorer::Abis &abis);
}

} // Qnx::Internal