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/scope | |
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/scope')
-rw-r--r-- | build/scope | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/build/scope b/build/scope index 2afc9f4..8b0d0ad 100644 --- a/build/scope +++ b/build/scope @@ -12,6 +12,8 @@ #include <butl/path-map> #include <build/types> +#include <build/utility> + #include <build/module> #include <build/variable> #include <build/prerequisite> @@ -138,7 +140,7 @@ namespace build target_type_map target_types; const target_type* - find_target_type (const char*, const scope** = nullptr) const; + find_target_type (const string&, const scope** = nullptr) const; // Given a name, figure out its type, taking into account extensions, // special names (e.g., '.' and '..'), or anything else that might be @@ -147,7 +149,7 @@ namespace build // necessarily normalized). Return NULL if not found. // const target_type* - find_target_type (name&, const std::string*& ext) const; + find_target_type (name&, const string*& ext) const; // Rules. // |