vcpkg/toolsrc/include/SourceParagraph.h
Robert Schumacher 7f336c7467 Enable qualified dependencies. Fix bug in internal 'build' command.
Added capability for CONTROL files to specify qualified dependencies, which are substring searched inside triplet names.

Fixed bug in internal 'build' command where if a package is already built, that built package's dependencies will be used to determine requirements for the build instead of the port directory's CONTROL file.
2016-11-05 01:02:15 -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);
}