mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-04 12:31:36 +08:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include <vcpkg/packagespec.h>
|
|
#include <vcpkg/sourceparagraph.h>
|
|
|
|
#include <unordered_map>
|
|
|
|
namespace vcpkg
|
|
{
|
|
/// <summary>
|
|
/// Built package metadata
|
|
/// </summary>
|
|
struct BinaryParagraph
|
|
{
|
|
BinaryParagraph();
|
|
explicit BinaryParagraph(std::unordered_map<std::string, std::string> fields);
|
|
BinaryParagraph(const SourceParagraph& spgh, const Triplet& triplet, const std::string& abi_tag);
|
|
BinaryParagraph(const SourceParagraph& spgh, const FeatureParagraph& fpgh, 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::string feature;
|
|
std::vector<std::string> default_features;
|
|
std::vector<std::string> depends;
|
|
std::string abi;
|
|
};
|
|
|
|
struct BinaryControlFile
|
|
{
|
|
BinaryParagraph core_paragraph;
|
|
std::vector<BinaryParagraph> features;
|
|
};
|
|
|
|
void serialize(const BinaryParagraph& pgh, std::string& out_str);
|
|
}
|