7 #include <msp/core/application.h>
8 #include <msp/parser/loader.h>
9 #include <msp/path/path.h>
15 class Builder: public Msp::Application
18 Builder(int, char **);
19 unsigned get_verbose() const { return verbose; }
20 Package *get_package(const std::string &);
21 Target *get_target(const std::string &);
22 Target *get_header(const std::string &, const std::string &, const std::list<std::string> &);
25 class Loader: public Msp::Parser::Loader
28 Loader(Builder &, const Msp::Path::Path &);
33 void package(const std::string &);
36 typedef std::map<std::string, Package *> PackageMap;
37 typedef std::map<std::string, Target *> TargetMap;
38 typedef std::map<std::string, std::string> ToolMap;
40 std::list<std::string> cmdline_targets;
41 RawOptionMap cmdline_options;
47 std::list<Package *> new_pkgs;
49 std::list<Target *> new_tgts;
52 int load_build_file(const Msp::Path::Path &);
54 Target *check_header(const Msp::Path::Path &);
55 void add_target(Target *);
58 static Msp::Application::RegApp<Builder> reg;