This allows special-casing pieces of code for some platforms without
fragmenting the directory structure too badly.
if(FS::is_dir(opath))
dirs.push_back(opath);
}
+ set<string> overlay_files;
for(SourceList::const_iterator j=dirs.begin(); j!=dirs.end(); ++j)
{
package.get_builder().get_logger().log("files", format("Traversing %s", *j));
list<string> sfiles = list_files(*j);
for(list<string>::iterator k=sfiles.begin(); k!=sfiles.end(); ++k)
+ {
+ if(j!=dirs.begin())
+ {
+ if(overlay_files.count(*k))
+ continue;
+ overlay_files.insert(*k);
+ }
files.push_back(*j / *k);
+ }
}
}
else