]> git.tdb.fi Git - builder.git/blob - source/executable.h
Include libmode in library lookup hash
[builder.git] / source / executable.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 EXECUTABLE_H_
9 #define EXECUTABLE_H_
10
11 #include "target.h"
12
13 class Component;
14 class ObjectFile;
15
16 /**
17 Produces a binary file, which may be either a standalone executable or a shared
18 library.
19 */
20 class Executable: public Target
21 {
22 public:
23         Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
24         const char      *get_type() const      { return "Executable"; }
25         const Component &get_component() const { return comp; }
26         void            find_depends();
27 private:
28         const Component &comp;
29
30         virtual Action  *create_action();
31
32         static std::string generate_target_name(const Component &);
33 };
34
35 #endif