1 #include <msp/strings/format.h>
3 #include "exportdefinitions.h"
4 #include "importlibrary.h"
5 #include "sharedlibrary.h"
6 #include "sourcepackage.h"
11 ImportLibrary::ImportLibrary(Builder &b, const FS::Path &p):
16 ImportLibrary::ImportLibrary(Builder &b, const Component &c, SharedLibrary &sl, ExportDefinitions &exp):
17 FileTarget(b, c.get_package(), c.get_package().get_output_directory()/format("lib%s.dll.a", sl.get_libname())),
22 shared_lib->set_import_library(this);
24 install_location = "lib";
26 const string &version = component->get_package().get_interface_version();
28 install_filename = format("lib%s-%s.dll.a", sl.get_libname(), version);