diff options
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&> ( |