It's not necessary with the MSVC toolchain.
ExportDefinitions *exp = new ExportDefinitions(builder, *shlib.get_component(), objs);
exp->set_tool(*this);
- ImportLibrary *imp = new ImportLibrary(builder, *shlib.get_component(), shlib, *exp);
+ ImportLibrary *imp = new ImportLibrary(builder, *shlib.get_component(), shlib);
+ imp->add_dependency(*exp);
imp->set_tool(*this);
return imp;
using namespace std;
using namespace Msp;
-ImportLibrary::ImportLibrary(Builder &b, const Component &c, SharedLibrary &sl, ExportDefinitions &exp):
+ImportLibrary::ImportLibrary(Builder &b, const Component &c, SharedLibrary &sl):
FileTarget(b, c.get_package(), c.get_package().get_output_directory()/generate_filename(c, sl)),
shared_lib(&sl)
{
component = &c;
- add_dependency(exp);
shared_lib->set_import_library(this);
install_location = "lib";
public:
ImportLibrary(Builder &b, const Msp::FS::Path &p): FileTarget(b, p) { }
- ImportLibrary(Builder &, const Component &, SharedLibrary &, ExportDefinitions &);
+ ImportLibrary(Builder &, const Component &, SharedLibrary &);
private:
static std::string generate_filename(const Component &, const SharedLibrary &);