X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcepackage.h;h=1333bdb5ca536a75946a5a4108e4d6acf0fe9c8a;hb=6140518acb736f9020005245686bfbc5fca2d329;hp=1e0e5f9cde5b76cff7a5c282e195e9e2dba879fb;hpb=2d765e850b2360940111cbd522af659cc3c4aef7;p=builder.git diff --git a/source/sourcepackage.h b/source/sourcepackage.h index 1e0e5f9..1333bdb 100644 --- a/source/sourcepackage.h +++ b/source/sourcepackage.h @@ -9,6 +9,7 @@ #include "config.h" #include "feature.h" #include "package.h" +#include "toolchain.h" class Builder; class BuildType; @@ -42,6 +43,7 @@ public: template void component(const std::string &); void build_info(); + void generate(const std::string &); void if_feature(const std::string &); void interface_version(const std::string &); void source_tarball(); @@ -61,6 +63,7 @@ private: FileTarget *build_file; Msp::FS::Path source_dir; const BuildType *build_type; + Toolchain local_tools; FeatureList features; BuildInfo build_info; ComponentList components; @@ -80,6 +83,7 @@ public: Msp::FS::Path get_temp_directory() const; Msp::FS::Path get_output_directory() const; + const Toolchain &get_toolchain() const { return local_tools; } const ComponentList &get_components() const { return components; } const Config &get_config() const { return config; } bool match_feature(const std::string &) const;