vector<string> args;
args.push_back(executable->get_path().str());
+ args.insert(args.end(), arguments.begin(), arguments.end());
const Target::Dependencies &deps = target.get_dependencies();
for(Target::Dependencies::const_iterator i=deps.begin(); i!=deps.end(); ++i)
DataFile::ObjectLoader<SourceGenerator>(sg),
ConditionalLoader(sg.package, format("%s/%s", sg.package.get_name(), sg.tag))
{
+ add("argument", &Loader::argument);
add("command", &Loader::command);
add("in_suffix", &Loader::in_suffix);
add("out_suffix", &Loader::out_suffix);
}
+void SourceGenerator::Loader::argument(const string &a)
+{
+ obj.arguments.push_back(a);
+}
+
void SourceGenerator::Loader::command(const string &c)
{
obj.set_command((obj.package.get_source_directory()/c).str());
Loader(SourceGenerator &);
private:
+ void argument(const std::string &);
void command(const std::string &);
void in_suffix(const std::string &);
void out_suffix(const std::string &);
private:
const SourcePackage &package;
std::list<std::string> out_suffixes;
+ std::list<std::string> arguments;
public:
SourceGenerator(Builder &, const SourcePackage &, const std::string &);