]> git.tdb.fi Git - builder.git/blobdiff - source/sharedlibrary.h
Replace per-file copyright notices with a single file
[builder.git] / source / sharedlibrary.h
index 79d4192f33178299186c829e0e77e3f7bc9ba56e..81c617e963a8862a8eecc770069ff82d46b80b57 100644 (file)
@@ -1,20 +1,25 @@
 #ifndef SHAREDLIB_H_
 #define SHAREDLIB_H_
 
-#include "executable.h"
+#include "binary.h"
+#include "library.h"
 
 /**
 Represents a shared library.  Mainly exists to give extra information to the
 user.
 */
-class SharedLibrary: public Executable
+class SharedLibrary: public Binary, public Library
 {
+private:
+       std::string soname;
+
 public:
        SharedLibrary(Builder &, const Component &, const std::list<ObjectFile *> &);
-       const char        *get_type() const    { return "SharedLibrary"; }
-       const std::string &get_libname() const { return libname; }
+       virtual const char *get_type() const { return "SharedLibrary"; }
+       const std::string &get_soname() const { return soname; }
+
 private:
-       std::string libname;
+       std::string create_soname(const Component &);
 };
 
 #endif