aboutsummaryrefslogtreecommitdiff
path: root/build/types
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-01 13:39:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-01 13:42:10 +0200
commit7996c2bfc2d7e998e2f9f1236d457ec7bea8ad8a (patch)
treedca79d3657bec47d4cd5db85899a70d3d49c079e /build/types
parentf355a4379f035df61a7702f5ff805eefb004fb20 (diff)
Implement support for definition target type aliases
For example: define cli=file Currently, the semantics is that of a real alias with only name differences that are used for display. See tests/define/buildfile for more use cases.
Diffstat (limited to 'build/types')
-rw-r--r--build/types9
1 files changed, 8 insertions, 1 deletions
diff --git a/build/types b/build/types
index 0a71252..c119839 100644
--- a/build/types
+++ b/build/types
@@ -7,6 +7,8 @@
#include <vector>
#include <string>
+#include <memory> // unique_ptr, shared_ptr
+#include <functional> // reference_wrapper
#include <butl/path>
#include <butl/timestamp>
@@ -17,7 +19,12 @@ namespace build
{
// Commonly-used types.
//
- using strings = std::vector<std::string>;
+ using std::string;
+ using std::unique_ptr;
+ using std::shared_ptr;
+ using std::reference_wrapper;
+
+ using strings = std::vector<string>;
using cstrings = std::vector<const char*>;
// <butl/path>