X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanalyzer.h;h=57d6c1ae0186b83085d7f79cf5396280eaca7280;hb=dcaf06c2bba4e02a312cd6af24ddc96410e7be4e;hp=b9afffa9e7e8896a58a10a53535f43fd4d823f85;hpb=04c316da6d5d90e43cba262f54d90ca231f703bf;p=builder.git diff --git a/source/analyzer.h b/source/analyzer.h index b9afffa..57d6c1a 100644 --- a/source/analyzer.h +++ b/source/analyzer.h @@ -1,14 +1,8 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef ANALYZER_H_ #define ANALYZER_H_ #include +#include #include #include @@ -26,7 +20,7 @@ public: DEPS, //< Skip over "trivial" targets such as Install and Compile ALLDEPS, //< Print out absolutely every target REBUILD, //< Print targets that are going to be rebuilt - RDEPS //< Print targets that depend on the given targets (NYI) + RDEPS //< Print targets that depend on the given targets }; private: @@ -38,6 +32,7 @@ private: Table table; unsigned max_depth; bool full_paths; + std::map > rdepends; public: Analyzer(Builder &); @@ -61,7 +56,8 @@ private: */ void print_table() const; - static bool target_order(Target *, Target *); + static bool target_order(const Target *, const Target *); + static bool target_order_full(const Target *, const Target *); }; #endif