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 &);
42 void headers(const std::string &);
45 Package(Builder &, const std::string &, const Msp::Path::Path &);
46 Package(Builder &, const std::string &, const std::vector<std::string> &);
47 const std::string &get_name() const { return name; }
48 const Msp::Path::Path &get_source() const { return source; }
49 const ComponentList &get_components() const { return components; }
50 bool get_buildable() const { return buildable; }
51 const Config &get_config() const { return config; }
52 const std::list<PackageRef> &get_requires() const { return requires; }
53 const BuildInfo &get_build_info() const { return build_info; }
54 const BuildInfo &get_exported_binfo() const { return export_binfo; }
56 void create_build_info();
57 void process_options(const RawOptionMap &);
59 static Package *create(Builder &, const std::string &);
72 std::string description;
73 std::list<PackageRef> requires;
75 BuildInfo export_binfo;
76 Msp::Path::Path source;
78 ComponentList components;
80 bool build_info_ready;
82 void init_buildable();
83 unsigned get_install_flags();