X-Git-Url: http://git.tdb.fi/?p=builder.git;a=blobdiff_plain;f=source%2Fsourcegenerator.cpp;h=4f757217958a7acf8eb9a3a981a985d579e60ac3;hp=c09e5c7d9527c3b60f17ce2bcef6069fac239144;hb=276a7c7c046a8f1b692cecbd53f17595ed23264d;hpb=658c46ea8ef6d7022cb8c8e06565ebce12842d0b diff --git a/source/sourcegenerator.cpp b/source/sourcegenerator.cpp index c09e5c7..4f75721 100644 --- a/source/sourcegenerator.cpp +++ b/source/sourcegenerator.cpp @@ -49,14 +49,6 @@ Target *SourceGenerator::create_target(const list &sources, const stri return primary; } -void SourceGenerator::do_prepare() -{ - FS::Path exe_fn = package.get_source_directory()/command; - executable = builder.get_vfs().get_target(exe_fn); - if(!executable) - executable = new Executable(builder, exe_fn); -} - Task *SourceGenerator::run(const Target &target) const { const SourceFile &out_src = dynamic_cast(target); @@ -86,7 +78,7 @@ SourceGenerator::Loader::Loader(SourceGenerator &sg): void SourceGenerator::Loader::command(const string &c) { - obj.set_command(c); + obj.set_command((obj.package.get_source_directory()/c).str()); } void SourceGenerator::Loader::in_suffix(const string &s)