From c1981e367aafc22389ac0ab506b00e9657c8071c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Jul 2015 10:38:02 +0200 Subject: Implement support for importing installed libraries --- build/target | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'build/target') diff --git a/build/target b/build/target index a1adbbd..ee61c7b 100644 --- a/build/target +++ b/build/target @@ -514,6 +514,14 @@ namespace build return target != nullptr ? target->name : prerequisite.get ().name; } + const std::string* + proj () const + { + // Target cannot be project-qualified. + // + return target != nullptr ? nullptr : prerequisite.get ().proj; + } + target_type& search () const { @@ -743,6 +751,17 @@ namespace build template T& + insert (const dir_path& dir, + const std::string& name, + const std::string* ext, + tracer& t) + { + return static_cast ( + insert (T::static_type, dir, name, ext, t).first); + } + + template + T& insert (const dir_path& dir, const std::string& name, tracer& t) { return static_cast ( -- cgit v1.1