7 #include <msp/framework/application.h>
8 #include <msp/parser/loader.h>
9 #include <msp/path/path.h>
14 class Builder: public Msp::Application
17 Builder(int, char **);
18 unsigned get_verbose() const { return verbose; }
19 Package *get_package(const std::string &);
20 Target *get_target(const std::string &);
21 Target *get_header(const std::string &, const std::string &, const std::list<std::string> &);
24 class Loader: public Msp::Parser::Loader
27 Loader(Builder &, const Msp::Path::Path &);
32 void package(const std::string &);
35 typedef std::map<std::string, Package *> PackageMap;
36 typedef std::map<std::string, Target *> TargetMap;
38 std::list<std::string> cmdline_targets;
44 std::list<Package *> new_pkgs;
46 std::list<Target *> new_tgts;
48 int load_build_file(const Msp::Path::Path &);
49 void create_targets();
50 Target *check_header(const Msp::Path::Path &);
51 void add_target(Target *);
53 static Msp::Application::RegApp<Builder> reg;