#include <msp/fs/utils.h>
+#include <msp/strings/format.h>
#include "builder.h"
#include "executable.h"
#include "externaltask.h"
SourceGenerator::Loader::Loader(SourceGenerator &sg):
- DataFile::ObjectLoader<SourceGenerator>(sg)
+ DataFile::ObjectLoader<SourceGenerator>(sg),
+ ConditionalLoader(sg.package, format("%s/%s", sg.package.get_name(), sg.tag))
{
add("command", &Loader::command);
add("in_suffix", &Loader::in_suffix);
#define SOURCEGENERATOR_H_
#include <msp/datafile/objectloader.h>
+#include "conditionalloader.h"
#include "sourcepackage.h"
#include "tool.h"
class SourceGenerator: public Tool
{
public:
- class Loader: public Msp::DataFile::ObjectLoader<SourceGenerator>
+ class Loader: public Msp::DataFile::ObjectLoader<SourceGenerator>, public ConditionalLoader
{
public:
Loader(SourceGenerator &);