7 #include <msp/core/application.h>
8 #include <msp/parser/loader.h>
9 #include <msp/path/path.h>
16 class Builder: public Msp::Application
19 Builder(int, char **);
20 unsigned get_verbose() const { return verbose; }
21 Package *get_package(const std::string &);
22 Target *get_target(const std::string &);
23 Target *get_header(const std::string &, const std::string &, const std::list<std::string> &);
24 Target *get_library(const std::string &, const std::list<std::string> &);
28 class Loader: public Msp::Parser::Loader
31 Loader(Builder &, const Msp::Path::Path &);
36 void package(const std::string &);
39 typedef std::map<std::string, Package *> PackageMap;
40 typedef std::map<std::string, Target *> TargetMap;
41 typedef std::map<std::string, std::string> ToolMap;
43 std::list<std::string> cmdline_targets;
44 RawOptionMap cmdline_options;
47 std::list<Package *> new_pkgs;
51 std::list<Target *> new_tgts;
60 std::list<std::string> what_if;
63 int load_build_file(const Msp::Path::Path &);
65 Target *check_header(const Msp::Path::Path &);
66 void add_target(Target *);
69 static Msp::Application::RegApp<Builder> reg;