2016-09-19 11:50:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
2017-04-04 05:45:00 +08:00
|
|
|
#include "PackageSpec.h"
|
2017-04-28 08:56:06 +08:00
|
|
|
#include "SourceParagraph.h"
|
|
|
|
#include <unordered_map>
|
2016-09-19 11:50:08 +08:00
|
|
|
|
|
|
|
namespace vcpkg
|
|
|
|
{
|
2017-05-25 06:54:12 +08:00
|
|
|
/// <summary>
|
|
|
|
/// Built package metadata
|
|
|
|
/// </summary>
|
2016-09-19 11:50:08 +08:00
|
|
|
struct BinaryParagraph
|
|
|
|
{
|
|
|
|
BinaryParagraph();
|
2016-11-04 08:36:47 +08:00
|
|
|
explicit BinaryParagraph(std::unordered_map<std::string, std::string> fields);
|
2017-04-11 04:06:44 +08:00
|
|
|
BinaryParagraph(const SourceParagraph& spgh, const Triplet& triplet);
|
2017-07-31 18:18:00 +08:00
|
|
|
BinaryParagraph(const SourceParagraph& spgh, const FeatureParagraph& fpgh, const Triplet& triplet);
|
2016-09-19 11:50:08 +08:00
|
|
|
|
|
|
|
std::string displayname() const;
|
|
|
|
|
|
|
|
std::string fullstem() const;
|
|
|
|
|
|
|
|
std::string dir() const;
|
|
|
|
|
2017-04-04 05:45:00 +08:00
|
|
|
PackageSpec spec;
|
2016-09-19 11:50:08 +08:00
|
|
|
std::string version;
|
|
|
|
std::string description;
|
|
|
|
std::string maintainer;
|
2017-07-13 08:40:41 +08:00
|
|
|
std::string feature;
|
|
|
|
std::vector<std::string> default_features;
|
2016-09-19 11:50:08 +08:00
|
|
|
std::vector<std::string> depends;
|
|
|
|
};
|
|
|
|
|
2017-07-26 12:29:31 +08:00
|
|
|
struct BinaryControlFile
|
|
|
|
{
|
|
|
|
BinaryParagraph core_paragraph;
|
|
|
|
std::vector<BinaryParagraph> features;
|
|
|
|
};
|
|
|
|
|
2017-04-13 13:48:52 +08:00
|
|
|
void serialize(const BinaryParagraph& pgh, std::string& out_str);
|
2017-07-13 08:40:41 +08:00
|
|
|
}
|