1 | // Copyright (C) 2018 The Qt Company Ltd. |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 |
3 | |
4 | #ifndef PROJECTDESCRIPTIONREADER_H |
5 | #define PROJECTDESCRIPTIONREADER_H |
6 | |
7 | #include <QtCore/qstring.h> |
8 | #include <QtCore/qstringlist.h> |
9 | |
10 | #include <optional> |
11 | #include <vector> |
12 | |
13 | struct Project; |
14 | |
15 | typedef std::vector<Project> Projects; |
16 | |
17 | struct Project |
18 | { |
19 | QString filePath; |
20 | QString compileCommands; |
21 | QString codec; |
22 | QStringList excluded; |
23 | QStringList includePaths; |
24 | QStringList sources; |
25 | Projects subProjects; |
26 | std::optional<QStringList> translations; |
27 | }; |
28 | |
29 | Projects readProjectDescription(const QString &filePath, QString *errorString); |
30 | |
31 | #endif // PROJECTDESCRIPTIONREADER_H |
32 | |