]> git.tdb.fi Git - builder.git/blob - source/executable.h
Add comments
[builder.git] / source / executable.h
1 #ifndef EXECUTABLE_H_
2 #define EXECUTABLE_H_
3
4 #include "target.h"
5
6 class Component;
7 class ObjectFile;
8
9 /**
10 Produces a binary file, which may be either a standalone executable or a shared
11 library.
12 */
13 class Executable: public Target
14 {
15 public:
16         Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
17         const char      *get_type() const      { return "Executable"; }
18         const Component &get_component() const { return comp; }
19         void            find_depends();
20         Action          *build();
21 private:
22         const Component &comp;
23
24         static std::string generate_target_name(const Component &);
25 };
26
27 #endif