diff options
Diffstat (limited to 'build2/algorithm.hxx')
-rw-r--r-- | build2/algorithm.hxx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/build2/algorithm.hxx b/build2/algorithm.hxx index 58bdf2f..2006e2a 100644 --- a/build2/algorithm.hxx +++ b/build2/algorithm.hxx @@ -27,13 +27,16 @@ namespace build2 // As above but only search for an already existing target. // const target* - search_existing (const target&, const prerequisite&); + search_existing (const prerequisite&); // As above but specify the prerequisite to search as a key. // const target& search (const target&, const prerequisite_key&); + const target* + search_existing (const prerequisite_key&); + // Uniform search interface for prerequisite/prerequisite_member. // inline const target& @@ -59,6 +62,15 @@ namespace build2 const scope* = nullptr, // NULL means dir is absolute. const optional<string>& proj = nullopt); + const target* + search_existing (const target_type& type, + const dir_path& dir, + const dir_path& out, + const string& name, + const string* ext = nullptr, + const scope* = nullptr, + const optional<string>& proj = nullopt); + // As above but specify the target type as template argument. // template <typename T> |