X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.cpp;h=06a99442b2fb47377044546d1646d7d599da5dcb;hb=82ae60a647ebb9567f7177c353245f4d72faaf5e;hp=56f9b32d3e09d5056717faf93d663b57d80648ec;hpb=e15bd086a1ef924b7986d18a1c5b3d31f54a01de;p=builder.git diff --git a/source/sharedlibrary.cpp b/source/sharedlibrary.cpp index 56f9b32..06a9944 100644 --- a/source/sharedlibrary.cpp +++ b/source/sharedlibrary.cpp @@ -9,7 +9,8 @@ using namespace std; using namespace Msp; SharedLibrary::SharedLibrary(Builder &b, const Msp::FS::Path &p): - Binary(b, p) + Binary(b, p), + import_lib(0) { libname = FS::basepart(FS::basename(path)); if(!libname.compare(0, 3, "lib")) @@ -18,7 +19,8 @@ SharedLibrary::SharedLibrary(Builder &b, const Msp::FS::Path &p): SharedLibrary::SharedLibrary(Builder &b, const Component &c, const list &objs): Binary(b, c, generate_filename(c), objs), - libname(c.get_name()) + libname(c.get_name()), + import_lib(0) { install_location = "lib"; if(component->get_type()==Component::MODULE) @@ -48,3 +50,8 @@ string SharedLibrary::generate_filename(const Component &comp) return arch.get_shared_library_patterns().front().apply(comp.get_name()); } } + +void SharedLibrary::set_import_library(ImportLibrary *imp) +{ + import_lib = imp; +}