if(const TemplateFile *tmpl = dynamic_cast<const TemplateFile *>(*i))
args.push_back(FS::relative(tmpl->get_path(), work_dir).str());
+ if(!out_argument.empty())
+ args.push_back(out_argument);
args.push_back(FS::relative(out_src.get_path(), work_dir).str());
return new ExternalTask(args, work_dir);
add("argument", &Loader::argument);
add("command", &Loader::command);
add("in_suffix", &Loader::in_suffix);
+ add("out_argument", &SourceGenerator::out_argument);
add("out_suffix", &Loader::out_suffix);
add("processing_unit", static_cast<ProcessingUnit SourceGenerator::*>(&SourceGenerator::processing_unit));
}
void argument(const 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 &);
};
const SourcePackage &package;
std::list<std::string> out_suffixes;
std::list<std::string> arguments;
+ std::string out_argument;
public:
SourceGenerator(Builder &, const SourcePackage &, const std::string &);