diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 13:46:26 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-28 13:46:26 +0200 |
commit | 1c7cbb302b1c6e41eb0c5cecfc655532f1919cba (patch) | |
tree | 84375e8be2bfe00b2387f02cab8dcca396019299 /build2/algorithm.hxx | |
parent | 24402ed431c1780914576f72350f8796308cb59b (diff) |
Implement support for linking whole archive
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> |