-/* $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 <list>
+#include <set>
#include <string>
#include <vector>
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:
Table table;
unsigned max_depth;
bool full_paths;
+ std::map<const Target *, std::set<Target *> > rdepends;
public:
Analyzer(Builder &);
*/
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