mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-24 11:37:12 +01:00

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);
|
|
}
|