mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 04:59:00 +08:00
7f336c7467
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.
36 lines
879 B
C++
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);
|
|
}
|