]> git.tdb.fi Git - builder.git/blobdiff - source/sourcegenerator.h
Refactor transitive dependencies to work on all targets
[builder.git] / source / sourcegenerator.h
diff --git a/source/sourcegenerator.h b/source/sourcegenerator.h
deleted file mode 100644 (file)
index e9fe308..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef SOURCEGENERATOR_H_
-#define SOURCEGENERATOR_H_
-
-#include <msp/datafile/objectloader.h>
-#include "conditionalloader.h"
-#include "sourcepackage.h"
-#include "tool.h"
-
-class SourceFile;
-
-class SourceGenerator: public Tool
-{
-public:
-       class Loader: public Msp::DataFile::ObjectLoader<SourceGenerator>, public ConditionalLoader
-       {
-       public:
-               Loader(SourceGenerator &);
-
-       private:
-               void argument(const std::string &);
-               void arguments(const std::vector<std::string> &);
-               void command(const std::string &);
-               void in_suffix(const std::string &);
-               void out_argument(const std::string &);
-               void out_suffix(const std::string &);
-       };
-
-private:
-       const SourcePackage &package;
-       std::vector<std::string> out_suffixes;
-       std::vector<std::string> arguments;
-       std::string out_argument;
-
-public:
-       SourceGenerator(Builder &, const SourcePackage &, const std::string &);
-
-       Target *create_source(const Component &, const Msp::FS::Path &) const override;
-       Target *create_target(const std::vector<Target *> &, const std::string &) override;
-
-private:
-       static Task *_run(const SourceFile &);
-};
-
-#endif