X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsharedlibrary.h;h=d8fa41bcdf7593caeba4f7ab012b1b8e0549acc4;hb=0458300fda4f345f865a7f3ee4fc0f2020a91983;hp=96a38fae0523192d14215af5c4580f6098ba407f;hpb=4fcc283a4bb1f695bd124006906bcdaba053193f;p=builder.git diff --git a/source/sharedlibrary.h b/source/sharedlibrary.h index 96a38fa..d8fa41b 100644 --- a/source/sharedlibrary.h +++ b/source/sharedlibrary.h @@ -1,13 +1,32 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef SHAREDLIB_H_ #define SHAREDLIB_H_ -#include "executable.h" +#include "binary.h" +#include "library.h" -class SharedLibrary: public Executable +/** +Represents a shared library. Mainly exists to give extra information to the +user. +*/ +class SharedLibrary: public Binary, public Library { +private: + std::string soname; + public: SharedLibrary(Builder &, const Component &, const std::list &); - const char *get_type() const { return "SharedLibrary"; } + virtual const char *get_type() const { return "SharedLibrary"; } + const std::string &get_soname() const { return soname; } + +private: + std::string create_soname(const Component &); }; #endif