3 This file is part of builder
4 Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
19 Performs various kinds of dependency analysis on the build tree.
26 DEPS, //< Skip over "trivial" targets such as Install and Compile
27 ALLDEPS, //< Print out absolutely every target
28 REBUILD, //< Print targets that are going to be rebuilt
29 RDEPS //< Print targets that depend on the given targets (NYI)
33 typedef std::vector<std::string> TableRow;
34 typedef std::list<TableRow> Table;
44 void set_mode(Mode m) { mode = m; }
45 void set_max_depth(unsigned m) { max_depth = m; }
46 void set_full_paths(bool f) { full_paths = f; }
49 Performs the analysis and prints out the resulting dependency tree.
55 Adds rows to the table for the given target and its dependencies.
57 void build_depend_table(Target &, unsigned);
60 Prints out the table that resulted from the analysis.
62 void print_table() const;
64 static bool target_order(Target *, Target *);