aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/mesonprojectmanager/mesoninfoparser.h
blob: 87fb0dc4f358e2f147280f3a48e10c63f7acd0d3 (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
// Copyright (C) 2020 Alexis Jeandet.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include "buildoptions.h"
#include "target.h"

#include <utils/filepath.h>

namespace MesonProjectManager::Internal::MesonInfoParser {

struct Result
{
    TargetsList targets;
    BuildOptionsList buildOptions;
    Utils::FilePaths buildSystemFiles;
};

Result parse(const Utils::FilePath &buildDir);
Result parse(const QByteArray &data);
Result parse(QIODevice *introFile);

} // namespace MesonProjectManager::Internal::MesonInfoParser