diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-20 10:38:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-20 10:38:02 +0200 |
commit | c1981e367aafc22389ac0ab506b00e9657c8071c (patch) | |
tree | 528b0d00283411de2daf6d0e2163f72f2e741ee9 /build/target | |
parent | 243da3993c138d33063f633aa3996a8a710ea396 (diff) |
Implement support for importing installed libraries
Diffstat (limited to 'build/target')
-rw-r--r-- | build/target | 19 |
1 files changed, 19 insertions, 0 deletions
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 <typename T> T& + insert (const dir_path& dir, + const std::string& name, + const std::string* ext, + tracer& t) + { + return static_cast<T&> ( + insert (T::static_type, dir, name, ext, t).first); + } + + template <typename T> + T& insert (const dir_path& dir, const std::string& name, tracer& t) { return static_cast<T&> ( |