1 #ifndef SOURCEGENERATOR_H_
2 #define SOURCEGENERATOR_H_
4 #include <msp/datafile/objectloader.h>
5 #include "conditionalloader.h"
6 #include "sourcepackage.h"
9 class SourceGenerator: public Tool
12 class Loader: public Msp::DataFile::ObjectLoader<SourceGenerator>, public ConditionalLoader
15 Loader(SourceGenerator &);
18 void argument(const std::string &);
19 void command(const std::string &);
20 void in_suffix(const std::string &);
21 void out_suffix(const std::string &);
25 const SourcePackage &package;
26 std::list<std::string> out_suffixes;
27 std::list<std::string> arguments;
30 SourceGenerator(Builder &, const SourcePackage &, const std::string &);
32 virtual Target *create_source(const Component &, const Msp::FS::Path &) const;
33 virtual Target *create_target(const std::list<Target *> &, const std::string &);
35 virtual Task *run(const Target &) const;