using namespace std;
using namespace Msp;
-Component::Component(SourcePackage &p, const string &n):
- package(p),
- name(n),
- install(false),
- deflt(true)
-{ }
-
void Component::prepare()
{
for(Package *r: requires)
return binfo;
}
-list<FS::Path> Component::collect_source_files() const
+vector<FS::Path> Component::collect_source_files() const
{
- list<FS::Path> files;
+ vector<FS::Path> files;
for(const FS::Path &p: sources)
{
if(FS::is_dir(p))
{
- list<FS::Path> dirs;
+ vector<FS::Path> dirs;
+ dirs.reserve(1+overlays.size());
dirs.push_back(p);
for(const string &o: overlays)
{
set<string> overlay_files;
for(auto j=dirs.begin(); j!=dirs.end(); ++j)
{
- package.get_builder().get_logger().log("files", format("Traversing %s", *j));
+ package.get_builder().get_logger().log("files", "Traversing %s", *j);
for(const string &f: list_files(*j))
{
if(j!=dirs.begin())