mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 06:49:11 +08:00
30 lines
695 B
C++
30 lines
695 B
C++
#pragma once
|
|
|
|
#include "PackageSpec.h"
|
|
#include "SourceParagraph.h"
|
|
#include <unordered_map>
|
|
|
|
namespace vcpkg
|
|
{
|
|
struct BinaryParagraph
|
|
{
|
|
BinaryParagraph();
|
|
explicit BinaryParagraph(std::unordered_map<std::string, std::string> fields);
|
|
BinaryParagraph(const SourceParagraph& spgh, const Triplet& 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;
|
|
};
|
|
|
|
void serialize(const BinaryParagraph& pgh, std::string& out_str);
|
|
}
|