X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.h;h=5331ef58290d8995b7cabdc5b5fadd0849cc7e9e;hb=5cfcbc7507b14df81018f734ae47f92b231b10d2;hp=639592d165370500d2dfa7e5dd85df1a61b5caa2;hpb=74266a6e650f019063cdcd1c9a7bd26d8f99041b;p=builder.git diff --git a/source/sharedlibrary.h b/source/sharedlibrary.h index 639592d..5331ef5 100644 --- a/source/sharedlibrary.h +++ b/source/sharedlibrary.h @@ -1,17 +1,30 @@ #ifndef SHAREDLIB_H_ #define SHAREDLIB_H_ -#include "executable.h" +#include "binary.h" /** -Represents a shared library. Mainly exists to give extra information to the -user. +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. */ -class SharedLibrary: public Executable +class SharedLibrary: public Binary { +private: + std::string libname; + std::string soname; + public: + SharedLibrary(Builder &, const Msp::FS::Path &); SharedLibrary(Builder &, const Component &, const std::list &); - const char *get_type() const { return "SharedLibrary"; } +private: + static std::string generate_filename(const Component &); + +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; } }; #endif