]> git.tdb.fi Git - libs/game.git/blobdiff - tools/builder-plugin/gamesetupgenerator.h
Create a builder plugin for the setup generator tool
[libs/game.git] / tools / builder-plugin / gamesetupgenerator.h
diff --git a/tools/builder-plugin/gamesetupgenerator.h b/tools/builder-plugin/gamesetupgenerator.h
new file mode 100644 (file)
index 0000000..8f3a881
--- /dev/null
@@ -0,0 +1,19 @@
+#ifndef GAMESETUPGENERATOR_H_
+#define GAMESETUPGENERATOR_H_
+
+#include <msp/builder/csourcefile.h>
+#include <msp/builder/tool.h>
+
+class GameSetupGenerator: public Tool
+{
+public:
+       GameSetupGenerator(Builder &);
+
+       Target *create_source(const Component &, const Msp::FS::Path &) const override;
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+
+private:
+       static ExternalTask::Arguments _run(const CSourceFile &, Msp::FS::Path &);
+};
+
+#endif