]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.h
Only use the -m flag on native arch
[builder.git] / source / sourcepackage.h
index 1e0e5f9cde5b76cff7a5c282e195e9e2dba879fb..fe79dccc25647470708bc686d6d31dc0374943a8 100644 (file)
@@ -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<Component::Type>
                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,9 +83,10 @@ 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;
+       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: