1 #include <msp/strings/format.h>
2 #include "architecture.h"
5 #include "exportdefinitions.h"
6 #include "importlibrary.h"
7 #include "sharedlibrary.h"
8 #include "sourcepackage.h"
13 ImportLibrary::ImportLibrary(Builder &b, const Component &c, SharedLibrary &sl):
14 FileTarget(b, c.get_package(), c.get_package().get_output_directory()/generate_filename(c, sl)),
18 shared_lib->set_import_library(this);
20 install_location = "lib";
23 string ImportLibrary::generate_filename(const Component &comp, const SharedLibrary &sl)
25 const Architecture &arch = comp.get_package().get_builder().get_current_arch();
26 return arch.create_filename<ImportLibrary>(sl.get_libname());