vcpkg/toolsrc/include/SourceParagraph.h

36 lines
879 B
C
Raw Normal View History

2016-09-19 11:50:08 +08:00
#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);
2016-09-19 11:50:08 +08:00
struct SourceParagraph
{
SourceParagraph();
explicit SourceParagraph(std::unordered_map<std::string, std::string> fields);
2016-09-19 11:50:08 +08:00
std::string name;
std::string version;
std::string description;
std::string maintainer;
std::vector<dependency> depends;
2016-09-19 11:50:08 +08:00
};
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);
2016-09-19 11:50:08 +08:00
}