]> git.tdb.fi Git - builder.git/blob - source/sharedlibrary.h
Add Symlink target and associated action
[builder.git] / source / sharedlibrary.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef SHAREDLIB_H_
9 #define SHAREDLIB_H_
10
11 #include "binary.h"
12 #include "library.h"
13
14 /**
15 Represents a shared library.  Mainly exists to give extra information to the
16 user.
17 */
18 class SharedLibrary: public Binary, public Library
19 {
20 private:
21         std::string soname;
22
23 public:
24         SharedLibrary(Builder &, const Component &, const std::list<ObjectFile *> &);
25         virtual const char *get_type() const { return "SharedLibrary"; }
26         const std::string &get_soname() const { return soname; }
27
28 private:
29         std::string create_soname(const Component &);
30 };
31
32 #endif