]> git.tdb.fi Git - builder.git/blobdiff - source/importlibrary.h
Add gcc's private library directory to ClangLinker's system path
[builder.git] / source / importlibrary.h
index 99db24d26fac2a0a1134f94d6cc37f0a598fed95..1c5d682a3be001a61fc2003b4485eeec94a94686 100644 (file)
@@ -13,13 +13,16 @@ platforms with no true dynamic linking support.
 class ImportLibrary: public FileTarget
 {
 private:
-       SharedLibrary *shared_lib;
+       SharedLibrary *shared_lib = 0;
 
 public:
-       ImportLibrary(Builder &, const Msp::FS::Path &);
-       ImportLibrary(Builder &, const Component &, ExportDefinitions &);
+       ImportLibrary(Builder &b, const Msp::FS::Path &p): FileTarget(b, p) { }
+       ImportLibrary(Builder &, const Component &, SharedLibrary &, ExportDefinitions &);
+private:
+       static std::string generate_filename(const Component &, const SharedLibrary &);
 
-       virtual const char *get_type() const { return "ImportLibrary"; }
+public:
+       const char *get_type() const override { return "ImportLibrary"; }
 
        SharedLibrary *get_shared_library() const { return shared_lib; }
 };