6 #include <msp/parser/loader.h>
17 PackageRef(Builder &, const std::string &);
18 const std::string &get_name() const { return name; }
19 Package *get_package() const { return package; }
30 class Loader: public Msp::Parser::Loader
34 Package &get_object() { return pkg; }
39 void require(const std::string &);
40 void program(const std::string &);
41 void library(const std::string &);
44 Package(Builder &, const std::string &, const Msp::Path::Path &);
45 Package(Builder &, const std::string &, const std::vector<std::string> &);
46 const std::string &get_name() const { return name; }
47 const Msp::Path::Path &get_source() const { return source; }
48 const ComponentList &get_components() const { return components; }
49 bool get_buildable() const { return buildable; }
50 const Config &get_config() const { return config; }
51 const std::list<PackageRef> &get_requires() const { return requires; }
52 const BuildInfo &get_build_info() const { return build_info; }
53 const BuildInfo &get_exported_binfo() const { return export_binfo; }
55 void create_build_info();
56 void process_options(const RawOptionMap &);
58 static Package *create(Builder &, const std::string &);
71 std::string description;
72 std::list<PackageRef> requires;
74 BuildInfo export_binfo;
75 Msp::Path::Path source;
77 ComponentList components;
79 bool build_info_ready;
81 void init_buildable();
82 unsigned get_install_flags();