| 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/qregularexpression.h> |
| 8 | #include <QtCore/qstring.h> |
| 9 | #include <QtCore/qstringlist.h> |
| 10 | #include <QtCore/qvector.h> |
| 11 | |
| 12 | #include <optional> |
| 13 | #include <vector> |
| 14 | |
| 15 | struct Project; |
| 16 | |
| 17 | typedef std::vector<Project> Projects; |
| 18 | |
| 19 | struct Project |
| 20 | { |
| 21 | QString filePath; |
| 22 | QString compileCommands; |
| 23 | QString codec; |
| 24 | QVector<QRegularExpression> excluded; |
| 25 | QStringList includePaths; |
| 26 | QStringList sources; |
| 27 | Projects subProjects; |
| 28 | std::optional<QStringList> translations; |
| 29 | }; |
| 30 | |
| 31 | Projects readProjectDescription(const QString &filePath, QString *errorString); |
| 32 | |
| 33 | #endif // PROJECTDESCRIPTIONREADER_H |
| 34 | |