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
{
2017-04-04 06:02:45 +08:00
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
};
2017-04-04 06:02:45 +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
}