aboutsummaryrefslogtreecommitdiff
path: root/build2/version/module.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/version/module.hxx')
-rw-r--r--build2/version/module.hxx36
1 files changed, 36 insertions, 0 deletions
diff --git a/build2/version/module.hxx b/build2/version/module.hxx
new file mode 100644
index 0000000..45b1a47
--- /dev/null
+++ b/build2/version/module.hxx
@@ -0,0 +1,36 @@
+// file : build2/version/module.hxx -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef BUILD2_VERSION_MODULE_HXX
+#define BUILD2_VERSION_MODULE_HXX
+
+#include <map>
+
+#include <build2/types.hxx>
+#include <build2/utility.hxx>
+
+#include <build2/module.hxx>
+
+namespace build2
+{
+ namespace version
+ {
+ // The 'depends' values from manifest.
+ //
+ using dependency_constraints = std::map<string, string>;
+
+ struct module: module_base
+ {
+ static const string name;
+
+ butl::standard_version version;
+ dependency_constraints dependencies;
+
+ module (butl::standard_version v, dependency_constraints d)
+ : version (move (v)), dependencies (move (d)) {}
+ };
+ }
+}
+
+#endif // BUILD2_VERSION_MODULE_HXX