mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 04:29:01 +08:00
307b761df4
added vcpkg feature package support to other commands remove comments change qualifier bracket to parens added features to qualified dependencies
41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#pragma once
|
|
|
|
#include "PackageSpec.h"
|
|
#include "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);
|
|
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;
|
|
};
|
|
|
|
struct BinaryControlFile
|
|
{
|
|
BinaryParagraph core_paragraph;
|
|
std::vector<BinaryParagraph> features;
|
|
};
|
|
|
|
void serialize(const BinaryParagraph& pgh, std::string& out_str);
|
|
} |