class Builder;
class BuildType;
+class FileTarget;
class bad_expansion: public std::runtime_error
{
void tar_file(const std::string &);
};
+ typedef std::list<Component> ComponentList;
+
private:
std::string version;
std::string description;
- Msp::FS::Path source;
+ FileTarget *build_file;
+ Msp::FS::Path source_dir;
const BuildType *build_type;
FeatureList features;
BuildInfo build_info;
public:
SourcePackage(Builder &, const std::string &, const Msp::FS::Path &);
+
const std::string &get_version() const { return version; }
const std::string &get_description() const { return description; }
- const Msp::FS::Path &get_source() const { return source; }
+ FileTarget &get_build_file() const { return *build_file; }
+ const Msp::FS::Path &get_source_directory() const { return source_dir; }
Msp::FS::Path get_temp_dir() const;
Msp::FS::Path get_out_dir() const;
const ComponentList &get_components() const { return components; }
const BuildInfo &get_build_info() const { return build_info; }
Builder &get_builder() const { return builder; }
- DependencyCache &get_deps_cache() const { return deps_cache; }
- std::string expand_string(const std::string &) const;
+ DependencyCache &get_dependency_cache() const { return deps_cache; }
private:
- virtual void do_configure(const StringMap &, unsigned);
-
- /** Initializes configuration options. */
- void init_config();
-
- /** Fills in build info based on configuration. All required packages must be
- configured when this is called. */
virtual void create_build_info();
virtual void create_targets();