From 6ecaa7e76c91a2842bcc63626a908bb2340b77b6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 22 Jun 2015 09:24:12 +0200 Subject: Remove prerequisite rewriting for c/cxx chaining --- build/algorithm | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'build/algorithm') diff --git a/build/algorithm b/build/algorithm index 5138dfa..2dc7164 100644 --- a/build/algorithm +++ b/build/algorithm @@ -5,12 +5,15 @@ #ifndef BUILD_ALGORITHM #define BUILD_ALGORITHM +#include + #include #include #include namespace build { + class scope; class prerequisite; class prerequisite_key; @@ -21,13 +24,31 @@ namespace build target& search (prerequisite&); - // As above but specify the prerequisite to search as a key. Useful - // for searching for target group members where we need to search - // for a different target type. + // As above but specify the prerequisite to search as a key. // target& search (const prerequisite_key&); + // As above but specify the prerequisite to search as individual + // key components. Useful for searching for target group members + // where we need to search for a different target type. + // + target& + search (const target_type& type, + const dir_path& dir, + const std::string& name, + const std::string* ext, + scope* scope); + + // As above but specify the target type as template argument. + // + template + T& + search (const dir_path& dir, + const std::string& name, + const std::string* ext, + scope* scope); + // Match a rule to the action/target with ambiguity detection. // void -- cgit v1.1