- //Package(Builder &, const std::string &, const std::vector<std::string> &);
- virtual void do_configure(const StringMap &, unsigned);
- void init_config();
- virtual void create_build_info();
+public:
+ SourcePackage(Builder &, const std::string &, const Msp::FS::Path &);
+ ~SourcePackage();
+
+ const std::string &get_version() const { return version; }
+ const std::string &get_interface_version() const { return interface_version; }
+ const std::string &get_description() const { return description; }
+
+ FileTarget &get_build_file() const { return *build_file; }
+ const Msp::FS::Path &get_source_directory() const { return source_dir; }
+ Msp::FS::Path get_temp_directory() const;
+ Msp::FS::Path get_output_directory() const;
+
+ const Toolchain &get_toolchain() const { return local_tools; }
+ const Component &get_component(const std::string &) const;
+ const Config &get_config() const { return config; }
+ bool match_feature(const std::string &, const std::string *) const;
+ void set_build_type(const BuildType &);
+ const BuildInfo &get_build_info() const { return build_info; }
+private:
+ virtual void do_prepare();
+
+public:
+ Cache &get_cache() const { return cache; }
+private:
+ virtual void save_caches();