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