X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=ad89e47431b3b47eee53c8d7a747ef98cce2707c;hb=c75c89d2425ab0c69e94d45a5d956286838bbc67;hp=7531bbf86b945e82638ea0044a106001b4a45931;hpb=e516e78510ad455eebc0e06645c9f12943117525;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; }