X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.h;h=4192fe767a7dfdc788a050298d6ead0dbbaad2e9;hb=5c25b76c7263b2a8ac01c863e438592c6287758a;hp=0dc16d175d5c75cfbd60a3f60db1a96f50af2dc0;hpb=8b9f2196ec0a930992614f174b7970c2ed523699;p=builder.git diff --git a/source/builder.h b/source/builder.h index 0dc16d1..4192fe7 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" @@ -21,7 +22,6 @@ class Config; class FileTarget; class Package; class SourcePackage; -class VirtualTarget; /** The main application class. Controls and owns everything. Rules the world. @@ -29,17 +29,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 &); }; @@ -57,7 +56,6 @@ private: public: typedef std::map TargetMap; - typedef std::list TargetList; private: typedef std::map ProfileTemplateMap; @@ -73,10 +71,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 +82,6 @@ private: unsigned clean; bool dry_run; bool help; - unsigned verbose; bool show_progress; std::string build_file; unsigned jobs; @@ -104,7 +101,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,11 +120,11 @@ 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. */ void add_target(Target *); - void register_path(const Msp::FS::Path &, FileTarget *); void problem(const std::string &, const std::string &);