]> git.tdb.fi Git - builder.git/blobdiff - source/tool.h
Add a list of auxiliary suffixes to Tool
[builder.git] / source / tool.h
index 5f210654597f325185a6e5c26e3f9c965026ec97..22fc3b28568293ea3a6b8bdb51faafc0d43da474 100644 (file)
@@ -12,18 +12,23 @@ class Task;
 
 class Tool
 {
+public:
+       typedef std::list<std::string> SuffixList;
+
 protected:
        Builder &builder;
        std::string tag;
-       std::list<std::string> input_suffixes;
+       SuffixList input_suffixes;
+       SuffixList aux_suffixes;
 
        Tool(Builder &, const std::string &);
 public:
        virtual ~Tool() { }
 
        const std::string &get_tag() const { return tag; }
-       const std::list<std::string> &get_input_suffixes() const { return input_suffixes; }
-       bool accepts_suffix(const std::string &) const;
+       const SuffixList &get_input_suffixes() const { return input_suffixes; }
+       const SuffixList &get_auxiliary_suffixes() const { return aux_suffixes; }
+       bool accepts_suffix(const std::string &, bool = false) const;
 
        virtual Target *create_source(const Component &, const Msp::FS::Path &) const { return 0; }
        Target *create_target(Target &, const std::string & = std::string()) const;