]> git.tdb.fi Git - builder.git/blob - source/executable.h
Reorder class members
[builder.git] / source / executable.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2009  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 private:
23         const Component ∁
24
25 public:
26         Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
27         virtual const char *get_type() const { return "Executable"; }
28         const Component &get_component() const { return comp; }
29         virtual void find_depends();
30 private:
31         virtual Action *create_action();
32
33         /** Returns the name for the executable.  We can't do this in the
34         constructor since we need to pass the value to the Target c'tor. */
35         static std::string generate_target_name(const Component &);
36 };
37
38 #endif