]> git.tdb.fi Git - builder.git/blobdiff - source/lib/importlibrary.cpp
Avoid exception if a directory in the package path does not exist
[builder.git] / source / lib / importlibrary.cpp
index 435fb30e50218f9446b48b468791d69e90cc5a17..8fa42f70f8a0f4108ea1f93befac372628027fe7 100644 (file)
 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";
-
-       const string &version = component->get_package().get_interface_version();
-       if(!version.empty())
-       {
-               const Architecture &arch = builder.get_current_arch();
-               install_filename = arch.create_filename<ImportLibrary>(format("%s-%s", sl.get_libname(), version));
-       }
 }
 
 string ImportLibrary::generate_filename(const Component &comp, const SharedLibrary &sl)