From 7996c2bfc2d7e998e2f9f1236d457ec7bea8ad8a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 1 Dec 2015 13:39:09 +0200 Subject: 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. --- build/scope | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'build/scope') diff --git a/build/scope b/build/scope index 2afc9f4..8b0d0ad 100644 --- a/build/scope +++ b/build/scope @@ -12,6 +12,8 @@ #include #include +#include + #include #include #include @@ -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. // -- cgit v1.1