14 Performs various kinds of dependency analysis on the build tree.
21 DEPS, //< Skip over "trivial" targets such as InstalledFile
22 ALLDEPS, //< Print out absolutely every target
23 REBUILD, //< Print targets that are going to be rebuilt
24 RDEPS //< Print targets that depend on the given targets
28 typedef std::vector<std::string> TableRow;
29 typedef std::list<TableRow> Table;
36 std::map<const Target *, std::set<Target *> > rdepends;
41 void set_mode(Mode m) { mode = m; }
42 void set_max_depth(unsigned m) { max_depth = m; }
43 void set_full_paths(bool f) { full_paths = f; }
45 /// Performs the analysis and prints out the resulting dependency tree.
49 /** Adds rows for a target, then recursively adds rows for dependencies as
51 void build_depend_table(Target &, unsigned);
53 /// Prints out the table that resulted from the analysis.
54 void print_table() const;
56 static bool target_order(const Target *, const Target *);
57 static bool target_order_full(const Target *, const Target *);