From 088a60c512aff26eeb026c516d0afe724880cb2b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Apr 2015 10:47:28 +0200 Subject: Provide more convenient access to root scope --- build/target | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'build/target') 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> prerequisites_type; -- cgit v1.1