X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.h;h=4b0bee33494636b2d5bb6392a001f458f728f4a8;hb=30b1243ff16b908ae18b4ab9d70f772c9196b949;hp=4192fe767a7dfdc788a050298d6ead0dbbaad2e9;hpb=8818c970f123a7fa44bf41bc60369217d083b4da;p=builder.git diff --git a/source/builder.h b/source/builder.h index 4192fe7..4b0bee3 100644 --- a/source/builder.h +++ b/source/builder.h @@ -8,6 +8,7 @@ #include #include #include "architecture.h" +#include "buildtype.h" #include "config.h" #include "logger.h" #include "misc.h" @@ -39,26 +40,16 @@ private: private: void architecture(const std::string &); void binpkg(const std::string &); + void build_type(const std::string &); void profile(const std::string &); void package(const std::string &); }; - class ProfileLoader: public Msp::DataFile::Loader - { - private: - StringMap &profile; - - public: - ProfileLoader(StringMap &); - private: - void option(const std::string &, const std::string &); - }; - public: typedef std::map TargetMap; private: - typedef std::map ProfileTemplateMap; + typedef std::map BuildTypeMap; StringList cmdline_targets; StringMap cmdline_options; @@ -71,7 +62,8 @@ private: Architecture native_arch; Architecture *current_arch; - ProfileTemplateMap profile_tmpl; + BuildTypeMap build_types; + BuildType *build_type; Toolchain toolchain; VirtualFileSystem vfs; Logger logger; @@ -116,7 +108,6 @@ public: const Architecture &get_native_arch() const { return native_arch; } const Msp::FS::Path &get_prefix() const { return prefix; } const StringList &get_warnings() const { return warnings; } - void apply_profile_template(Config &, const std::string &) const; const Toolchain &get_toolchain() const { return toolchain; } VirtualFileSystem &get_vfs() { return vfs; }