X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fimportlibrary.cpp;h=1e6650fdac1ee648ebae4fbf642ef2cf498a1c6e;hb=HEAD;hp=9ac441f419ea6d683eb86c07890f622232711084;hpb=82ae60a647ebb9567f7177c353245f4d72faaf5e;p=builder.git diff --git a/source/importlibrary.cpp b/source/importlibrary.cpp deleted file mode 100644 index 9ac441f..0000000 --- a/source/importlibrary.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include -#include "component.h" -#include "exportdefinitions.h" -#include "importlibrary.h" -#include "sourcepackage.h" - -using namespace std; -using namespace Msp; - -ImportLibrary::ImportLibrary(Builder &b, const FS::Path &p): - FileTarget(b, p), - shared_lib(0) -{ } - -ImportLibrary::ImportLibrary(Builder &b, const Component &c, ExportDefinitions &exp): - FileTarget(b, c.get_package(), c.get_package().get_out_dir()/format("lib%s.dll.a", c.get_name())), - shared_lib(&exp.get_library()) -{ - component = &c; - add_dependency(exp); - - install_location = "lib"; - - const string &version = component->get_package().get_interface_version(); - if(!version.empty()) - install_filename = format("lib%s-%s.dll.a", c.get_name(), version); -}