summaryrefslogtreecommitdiffstats
path: root/src/linguist/shared/projectdescriptionreader.h
blob: 0222bdb422eda2569c40dee5a6571cde88a405d7 (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
// Copyright (C) 2018 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef PROJECTDESCRIPTIONREADER_H
#define PROJECTDESCRIPTIONREADER_H

#include <QtCore/qstring.h>
#include <QtCore/qstringlist.h>

#include <optional>
#include <vector>

struct Project;

typedef std::vector<Project> Projects;

struct Project
{
    QString filePath;
    QString compileCommands;
    QString codec;
    QStringList excluded;
    QStringList includePaths;
    QStringList sources;
    Projects subProjects;
    std::optional<QStringList> translations;
};

Projects readProjectDescription(const QString &filePath, QString *errorString);

#endif // PROJECTDESCRIPTIONREADER_H