]> git.tdb.fi Git - builder.git/blob - source/staticlibrary.h
cd0342ea47b950ef88c0b25bc3c5427569018e13
[builder.git] / source / staticlibrary.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef STATICLIB_H_
9 #define STATICLIB_H_
10
11 #include "target.h"
12
13 class Component;
14 class ObjectFile;
15
16 /**
17 A static library target.
18 */
19 class StaticLibrary: public Target
20 {
21 public:
22         StaticLibrary(Builder &, const Component &, const std::list<ObjectFile *> &);
23         const char      *get_type() const      { return "StaticLibrary"; }
24         const Component &get_component() const { return comp; }
25         Action          *build();
26 private:
27         const Component &comp;
28
29         std::string generate_target_name(const Component &);
30 };
31
32 #endif