diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-07 10:47:28 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-07 10:47:28 +0200 |
commit | 088a60c512aff26eeb026c516d0afe724880cb2b (patch) | |
tree | 3fbd798bd6a385875c8db3b2677a94d3abeb23eb /build/target | |
parent | 137df0bea6cebabe5278e67e5dad6f3047c762fb (diff) |
Provide more convenient access to root scope
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; |