X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.h;h=c40bccd3bfde548e21efdf2d7b132c93e1eb835b;hb=407b96515a5246384847d1835a2d69704e941ea1;hp=5331ef58290d8995b7cabdc5b5fadd0849cc7e9e;hpb=f0c501af5d99233efd3a45076ffbe69a71294863;p=builder.git diff --git a/source/sharedlibrary.h b/source/sharedlibrary.h index 5331ef5..c40bccd 100644 --- a/source/sharedlibrary.h +++ b/source/sharedlibrary.h @@ -3,17 +3,23 @@ #include "binary.h" +class ImportLibrary; + /** Represents a shared library. It has two special properties: libname and soname. Libname is the name used by the linker. Soname is the canonical filename of the library, including version number. If the owning package has no version, soname will be empty. + +A SharedLibrary can also store a pointer to the associated ImportLibrary, for +platforms that need one. */ class SharedLibrary: public Binary { private: std::string libname; std::string soname; + ImportLibrary *import_lib; public: SharedLibrary(Builder &, const Msp::FS::Path &); @@ -25,6 +31,9 @@ public: virtual const char *get_type() const { return "SharedLibrary"; } const std::string &get_libname() const { return libname; } const std::string &get_soname() const { return soname; } + + void set_import_library(ImportLibrary *); + ImportLibrary *get_import_library() const { return import_lib; } }; #endif