X-Git-Url: http://git.tdb.fi/?p=builder.git;a=blobdiff_plain;f=source%2Fdatapackcomponent.cpp;h=b95770f4e432891b34c303a375d929042c4d4ece;hp=0b8d020eead41c9c0adc50056f60acca3fff6a47;hb=7c2db9e2b91da953701be233336c5bfa1f3c4af0;hpb=32d6218afe58969f2b18dfa6e262bb9509829abe diff --git a/source/datapackcomponent.cpp b/source/datapackcomponent.cpp index 0b8d020..b95770f 100644 --- a/source/datapackcomponent.cpp +++ b/source/datapackcomponent.cpp @@ -18,19 +18,18 @@ void DataPackComponent::create_targets() const Tool &dcomp = builder.get_toolchain().get_tool("DATA"); list files; - SourceList source_filenames = collect_source_files(); - for(SourceList::const_iterator i=source_filenames.begin(); i!=source_filenames.end(); ++i) + for(const FS::Path &s: collect_source_files()) { - string ext = FS::extpart(FS::basename(*i)); + string ext = FS::extpart(FS::basename(s)); if(ext==".mdt") { - Target *src = dcomp.create_source(*this, *i); + Target *src = dcomp.create_source(*this, s); files.push_back(dcomp.create_target(*src, "collection")); } - else if(Target *tgt = builder.get_vfs().get_target(*i)) + else if(Target *tgt = builder.get_vfs().get_target(s)) files.push_back(tgt); else - files.push_back(new DataSourceFile(builder, *this, *i)); + files.push_back(new DataSourceFile(builder, *this, s)); } Target *result = dcomp.create_target(files, "pack");