Distributed under the LGPL
*/
-#include <iostream>
+#include <msp/path/utils.h>
+#include <msp/strings/formatter.h>
#include "builder.h"
#include "component.h"
#include "executable.h"
*/
void Executable::find_depends()
{
- LibMode libmode=package->get_library_mode();
+ LibMode libmode=comp.get_package().get_library_mode();
list<const Component *> queue;
list<Target *> dep_libs;
queue.push_back(&stlib->get_component());
}
else
- cout<<"Couldn't find library "<<*i<<" for "<<name<<'\n';
- //XXX Throw an exception here or something
+ builder.problem(comp.get_package().get_name(), format("Couldn't find library %s for %s", *i, basename(name)));
}
}
*/
string Executable::generate_target_name(const Component &c)
{
- string prefix,suffix;
+ string prefix, suffix;
const string &arch=c.get_package().get_arch();
if(c.get_type()==Component::LIBRARY)