1 #ifndef IMPORTLIBRARY_H_
2 #define IMPORTLIBRARY_H_
4 #include "filetarget.h"
6 class ExportDefinitions;
10 A special case of static library which pulls in a shared library. Used on
11 platforms with no true dynamic linking support.
13 class ImportLibrary: public FileTarget
16 SharedLibrary *shared_lib = 0;
19 ImportLibrary(Builder &b, const Msp::FS::Path &p): FileTarget(b, p) { }
20 ImportLibrary(Builder &, const Component &, SharedLibrary &, ExportDefinitions &);
22 static std::string generate_filename(const Component &, const SharedLibrary &);
25 const char *get_type() const override { return "ImportLibrary"; }
27 SharedLibrary *get_shared_library() const { return shared_lib; }