1 #ifndef IMPORTLIBRARY_H_
2 #define IMPORTLIBRARY_H_
4 #include "filetarget.h"
5 #include "libbuilder_api.h"
7 class ExportDefinitions;
11 A special case of static library which pulls in a shared library. Used on
12 platforms with no true dynamic linking support.
14 class LIBBUILDER_API ImportLibrary: public FileTarget
17 SharedLibrary *shared_lib = 0;
20 ImportLibrary(Builder &b, const Msp::FS::Path &p): FileTarget(b, p) { }
21 ImportLibrary(Builder &, const Component &, SharedLibrary &);
23 static std::string generate_filename(const Component &, const SharedLibrary &);
26 const char *get_type() const override { return "ImportLibrary"; }
28 SharedLibrary *get_shared_library() const { return shared_lib; }