X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fbuilder.h;h=90380a696b81ab3018746afc82b8c999ef4b16b1;hb=f2b26f1929a8209a746bcf4944165b0ba9ef303f;hp=0dc16d175d5c75cfbd60a3f60db1a96f50af2dc0;hpb=8b9f2196ec0a930992614f174b7970c2ed523699;p=builder.git diff --git a/source/builder.h b/source/builder.h index 0dc16d1..90380a6 100644 --- a/source/builder.h +++ b/source/builder.h @@ -9,6 +9,7 @@ #include #include "architecture.h" #include "config.h" +#include "logger.h" #include "misc.h" #include "packagemanager.h" #include "problem.h" @@ -29,17 +30,16 @@ The main application class. Controls and owns everything. Rules the world. class Builder: public Msp::RegisteredApplication { private: - class Loader: public Msp::DataFile::Loader + class Loader: public Msp::DataFile::ObjectLoader { private: - Builder &bld; Msp::FS::Path src; public: Loader(Builder &, const Msp::FS::Path &); private: + void architecture(const std::string &); void binpkg(const std::string &); - void cross_prefix(const std::string &, const std::string &); void profile(const std::string &); void package(const std::string &); }; @@ -73,10 +73,10 @@ private: Architecture native_arch; Architecture *current_arch; - StringMap cross_prefixes; ProfileTemplateMap profile_tmpl; Toolchain toolchain; VirtualFileSystem vfs; + Logger logger; ProblemList problems; Analyzer *analyzer; @@ -84,7 +84,6 @@ private: unsigned clean; bool dry_run; bool help; - unsigned verbose; bool show_progress; std::string build_file; unsigned jobs; @@ -104,7 +103,6 @@ public: ~Builder(); int main(); - unsigned get_verbose() const { return verbose; } bool get_dry_run() const { return dry_run; } PackageManager &get_package_manager() { return package_manager; } @@ -124,6 +122,7 @@ public: const Toolchain &get_toolchain() const { return toolchain; } VirtualFileSystem &get_vfs() { return vfs; } + const Logger &get_logger() const { return logger; } /** Adds a target to both the target map and the new target queue. Called from Target constructor. */