From 1c7cbb302b1c6e41eb0c5cecfc655532f1919cba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Jul 2017 13:46:26 +0200 Subject: Implement support for linking whole archive --- build2/algorithm.hxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'build2/algorithm.hxx') 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& 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& proj = nullopt); + // As above but specify the target type as template argument. // template -- cgit v1.1