aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/include/BinaryParagraph.h
diff options
context:
space:
mode:
Diffstat (limited to 'toolsrc/include/BinaryParagraph.h')
-rw-r--r--toolsrc/include/BinaryParagraph.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/toolsrc/include/BinaryParagraph.h b/toolsrc/include/BinaryParagraph.h
new file mode 100644
index 000000000..88d6e84b1
--- /dev/null
+++ b/toolsrc/include/BinaryParagraph.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <unordered_map>
+#include "SourceParagraph.h"
+#include "triplet.h"
+
+namespace vcpkg
+{
+ struct BinaryParagraph
+ {
+ BinaryParagraph();
+ explicit BinaryParagraph(const std::unordered_map<std::string, std::string>& fields);
+ BinaryParagraph(const SourceParagraph& spgh, const triplet& target_triplet);
+
+ std::string displayname() const;
+
+ std::string fullstem() const;
+
+ std::string dir() const;
+
+ std::string name;
+ std::string version;
+ std::string description;
+ std::string maintainer;
+ triplet target_triplet;
+ std::vector<std::string> depends;
+ };
+
+ std::ostream& operator<<(std::ostream& os, const BinaryParagraph& pgh);
+}