aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include')
-rw-r--r--toolsrc/include/vcpkg/sourceparagraph.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/sourceparagraph.h b/toolsrc/include/vcpkg/sourceparagraph.h
index 9fbd83475..9a1c2c843 100644
--- a/toolsrc/include/vcpkg/sourceparagraph.h
+++ b/toolsrc/include/vcpkg/sourceparagraph.h
@@ -46,6 +46,12 @@ namespace vcpkg
/// </summary>
struct SourceParagraph
{
+ enum TYPE : unsigned
+ {
+ PORT = 0,
+ SYS_TOOL,
+ };
+
std::string name;
std::string version;
std::string description;
@@ -54,6 +60,10 @@ namespace vcpkg
std::vector<std::string> supports;
std::vector<Dependency> depends;
std::vector<std::string> default_features;
+ TYPE type;
+
+ static TYPE type_from_string(const std::string& in);
+ static std::string string_from_type(const TYPE& in);
};
/// <summary>