vcpkg/toolsrc/include/SourceParagraph.h
Alexander Karatarakis bdf80d63c6 triplet -> Triplet
2017-04-04 16:44:42 -07:00

36 lines
879 B
C++

#pragma once
#include <vector>
#include <unordered_map>
namespace vcpkg
{
struct Triplet;
struct dependency
{
std::string name;
std::string qualifier;
};
std::ostream& operator<<(std::ostream& os, const dependency& p);
struct SourceParagraph
{
SourceParagraph();
explicit SourceParagraph(std::unordered_map<std::string, std::string> fields);
std::string name;
std::string version;
std::string description;
std::string maintainer;
std::vector<dependency> depends;
};
std::vector<std::string> filter_dependencies(const std::vector<vcpkg::dependency>& deps, const Triplet& t);
std::vector<vcpkg::dependency> expand_qualified_dependencies(const std::vector<std::string>& depends);
std::vector<std::string> parse_depends(const std::string& depends_string);
}