diff options
Diffstat (limited to 'build/target')
-rw-r--r-- | build/target | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/build/target b/build/target index f8bb2c1..48accc8 100644 --- a/build/target +++ b/build/target @@ -100,6 +100,19 @@ namespace build const std::string* ext; // Extension, NULL means unspecified. public: + // Most qualified scope that contains this target. + // + scope& + base_scope () const; + + // Root scope of a project that contains this target. Note that + // a target can be out of any (known) project root in which case + // NULL is returned. + // + scope* + root_scope () const; + + public: typedef std::vector<std::reference_wrapper<prerequisite>> prerequisites_type; |