X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fanalyzer.h;h=cca259052d8c075a5b5970e7bf4401212e8f96df;hb=87ea54db19306434bac3e765c9bd3464fd53f390;hp=7dd4c1345d8e3b5d09f25835da88ce996be48bb7;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/analyzer.h b/source/analyzer.h index 7dd4c13..cca2590 100644 --- a/source/analyzer.h +++ b/source/analyzer.h @@ -9,6 +9,7 @@ Distributed under the LGPL #define ANALYZER_H_ #include +#include #include #include @@ -26,7 +27,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,12 +39,13 @@ private: Table table; unsigned max_depth; bool full_paths; + std::map > rdepends; public: Analyzer(Builder &); - void set_mode(Mode m) { mode=m; } - void set_max_depth(unsigned m) { max_depth=m; } - void set_full_paths(bool f) { full_paths=f; } + void set_mode(Mode m) { mode = m; } + void set_max_depth(unsigned m) { max_depth = m; } + void set_full_paths(bool f) { full_paths = f; } /** Performs the analysis and prints out the resulting dependency tree. @@ -61,7 +63,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