/* $Id$
This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
Distributed under the LGPL
*/
-#include <msp/path/utils.h>
+#include <msp/fs/utils.h>
#include <msp/strings/formatter.h>
#include "builder.h"
#include "component.h"
add_depend(*i);
}
-/**
-Finds and adds any required libraries to the dependencies.
-*/
void Executable::find_depends()
{
LibMode libmode=comp.get_package().get_library_mode();
queue.push_back(&stlib->get_component());
}
else
- builder.problem(comp.get_package().get_name(), format("Couldn't find library %s for %s", *i, basename(name)));
+ builder.problem(comp.get_package().get_name(), format("Couldn't find library %s for %s", *i, FS::basename(name)));
}
}
return new Link(builder, *this);
}
-/**
-Returns the name for the executable. We can't do this in the constructor since
-we need to pass the value to the Target c'tor.
-*/
string Executable::generate_target_name(const Component &c)
{
const SourcePackage &pkg=c.get_package();