diff options
Diffstat (limited to 'build/target')
-rw-r--r-- | build/target | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/build/target b/build/target index d4a4bef..a866c98 100644 --- a/build/target +++ b/build/target @@ -205,6 +205,8 @@ namespace build target_key key () const {return target_key {&type (), &dir, &name, &ext};} + // Scoping. + // public: // Most qualified scope that contains this target. // @@ -225,6 +227,15 @@ namespace build scope& strong_scope () const {return *root_scope ().strong_scope ();} + + bool + in (const scope& s) const + { + return + (s.out_path_ != nullptr && dir.sub (*s.out_path_)) || + (s.src_path_ != nullptr && dir.sub (*s.src_path_)); + } + // Prerequisites. // public: |