4 #include "virtualfilesystem.h"
10 Manages a graph of targets.
15 typedef std::map<std::string, Target *> TargetMap;
22 BuildGraph(Builder &);
25 /** Looks up a target by name. Returns 0 if no such target exists. */
26 Target *get_target(const std::string &) const;
28 const TargetMap &get_targets() const { return targets; }
30 /** Adds a target. It can later be retrieved by name. Called from Target
32 void add_target(Target *);
34 /** Adds a target that is a primary build goal. Such targets will be added
35 as dependencies of the "world" virtual target. If the target belongs to a
36 default component of the main package, it's also added to the "default"
38 void add_primary_target(Target &);
40 /** Adds a target that will be installed. A new InstalledFile target is
41 created and added as a dependency to the "install" virtual target. */
42 void add_installed_target(Target &);