2016-09-18 20:50:08 -07:00
|
|
|
#pragma once
|
|
|
|
|
2017-10-13 18:37:41 -07:00
|
|
|
#include <vcpkg/packagespec.h>
|
2020-02-07 11:24:35 -08:00
|
|
|
#include <vcpkg/paragraphparser.h>
|
2017-10-13 18:37:41 -07:00
|
|
|
#include <vcpkg/sourceparagraph.h>
|
|
|
|
|
2016-09-18 20:50:08 -07:00
|
|
|
namespace vcpkg
|
|
|
|
{
|
2017-05-24 15:54:12 -07:00
|
|
|
/// <summary>
|
|
|
|
/// Built package metadata
|
|
|
|
/// </summary>
|
2016-09-18 20:50:08 -07:00
|
|
|
struct BinaryParagraph
|
|
|
|
{
|
2018-04-25 00:19:27 -07:00
|
|
|
BinaryParagraph();
|
2020-02-09 14:50:26 -08:00
|
|
|
explicit BinaryParagraph(Parse::Paragraph fields);
|
2020-02-03 14:22:52 -08:00
|
|
|
BinaryParagraph(const SourceParagraph& spgh,
|
2020-02-07 11:24:35 -08:00
|
|
|
Triplet triplet,
|
2020-02-03 14:22:52 -08:00
|
|
|
const std::string& abi_tag,
|
|
|
|
const std::vector<FeatureSpec>& deps);
|
|
|
|
BinaryParagraph(const SourceParagraph& spgh,
|
|
|
|
const FeatureParagraph& fpgh,
|
2020-02-07 11:24:35 -08:00
|
|
|
Triplet triplet,
|
2020-02-03 14:22:52 -08:00
|
|
|
const std::vector<FeatureSpec>& deps);
|
2016-09-18 20:50:08 -07:00
|
|
|
|
|
|
|
std::string displayname() const;
|
|
|
|
|
|
|
|
std::string fullstem() const;
|
|
|
|
|
|
|
|
std::string dir() const;
|
|
|
|
|
2017-04-03 14:45:00 -07:00
|
|
|
PackageSpec spec;
|
2016-09-18 20:50:08 -07:00
|
|
|
std::string version;
|
|
|
|
std::string description;
|
|
|
|
std::string maintainer;
|
2017-07-12 17:40:41 -07:00
|
|
|
std::string feature;
|
|
|
|
std::vector<std::string> default_features;
|
2016-09-18 20:50:08 -07:00
|
|
|
std::vector<std::string> depends;
|
2017-10-31 02:13:49 -07:00
|
|
|
std::string abi;
|
2020-02-03 14:22:52 -08:00
|
|
|
Type type;
|
2016-09-18 20:50:08 -07:00
|
|
|
};
|
|
|
|
|
2017-07-25 21:29:31 -07:00
|
|
|
struct BinaryControlFile
|
|
|
|
{
|
|
|
|
BinaryParagraph core_paragraph;
|
|
|
|
std::vector<BinaryParagraph> features;
|
|
|
|
};
|
|
|
|
|
2017-04-12 22:48:52 -07:00
|
|
|
void serialize(const BinaryParagraph& pgh, std::string& out_str);
|
2018-02-26 18:38:25 -08:00
|
|
|
}
|