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"
#include "link.h"
#include "objectfile.h"
#include "package.h"
+#include "sharedlibrary.h"
#include "staticlibrary.h"
using namespace std;
void Executable::find_depends()
{
LibMode libmode=comp.get_package().get_library_mode();
+ if(dynamic_cast<SharedLibrary *>(this))
+ libmode=DYNAMIC;
list<const Component *> queue;
list<Target *> dep_libs;
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)));
}
}
deps_ready=true;
}
-Action *Executable::build()
+Action *Executable::create_action()
{
- return Target::build(new Link(builder, *this));;
+ return new Link(builder, *this);
}
/**