+/* $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"
/**
Represents a shared library. Mainly exists to give extra information to the
user.
*/
-class SharedLibrary: public Executable
+class SharedLibrary: public Binary, public Library
{
public:
SharedLibrary(Builder &, const Component &, const std::list<ObjectFile *> &);
- const char *get_type() const { return "SharedLibrary"; }
- const std::string &get_libname() const { return libname; }
-private:
- std::string libname;
+ virtual const char *get_type() const { return "SharedLibrary"; }
};
#endif