X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=ad89e47431b3b47eee53c8d7a747ef98cce2707c;hb=c51411c4b3ed4e6a0d8343b848db3dc736bc7857;hp=7531bbf86b945e82638ea0044a106001b4a45931;hpb=3f0f7216789aeedba206308c452623351e406e75;p=builder.git diff --git a/source/tool.h b/source/tool.h index 7531bbf..ad89e47 100644 --- a/source/tool.h +++ b/source/tool.h @@ -4,6 +4,7 @@ #include #include #include +#include "buildinfo.h" class Architecture; class Builder; @@ -32,6 +33,7 @@ protected: SuffixList input_suffixes; SuffixList aux_suffixes; SearchPath system_path; + BuildInfo build_info; bool prepared; std::list problems; @@ -71,6 +73,10 @@ public: /// Returns the systemwide search path for source files. const SearchPath &get_system_path() const { return system_path; } + /** Returns tool-specific build info. This can be used by other tools down + the chain. */ + const BuildInfo &get_build_info() const { return build_info; } + /// Creates a source file appropriate for this tool. virtual Target *create_source(const Component &, const Msp::FS::Path &) const { return 0; }