aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/BinaryParagraph.h
blob: d92ae7e6db3998671905f3d427c1c8167d7005bd (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
#pragma once

#include <unordered_map>
#include "SourceParagraph.h"
#include "PackageSpec.h"

namespace vcpkg
{
    struct BinaryParagraph
    {
        BinaryParagraph();
        explicit BinaryParagraph(std::unordered_map<std::string, std::string> fields);
        BinaryParagraph(const SourceParagraph& spgh, const Triplet& target_triplet);

        std::string displayname() const;

        std::string fullstem() const;

        std::string dir() const;

        PackageSpec spec;
        std::string version;
        std::string description;
        std::string maintainer;
        std::vector<std::string> depends;
    };

    std::ostream& operator<<(std::ostream& os, const BinaryParagraph& pgh);
}