diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-01 13:39:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-12-01 13:42:10 +0200 |
commit | 7996c2bfc2d7e998e2f9f1236d457ec7bea8ad8a (patch) | |
tree | dca79d3657bec47d4cd5db85899a70d3d49c079e /build/types | |
parent | f355a4379f035df61a7702f5ff805eefb004fb20 (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/types | 9 |
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> |