#include <msp/fs/utils.h>
#include <msp/strings/format.h>
+#include "binarycomponent.h"
#include "builder.h"
-#include "component.h"
#include "objectfile.h"
#include "sharedlibrary.h"
#include "sourcepackage.h"
else
install_location = "lib";
- if(component->get_type()==Component::MODULE)
+ const BinaryComponent &bcomp = dynamic_cast<const BinaryComponent &>(*component);
+ if(bcomp.get_type()==BinaryComponent::MODULE)
install_location /= package->get_name();
else
{
string SharedLibrary::generate_filename(const Component &comp)
{
- if(comp.get_type()==Component::MODULE)
+ const BinaryComponent &bcomp = dynamic_cast<const BinaryComponent &>(comp);
+ if(bcomp.get_type()==BinaryComponent::MODULE)
return comp.get_name()+".m";
else
{