]> git.tdb.fi Git - builder.git/blob - source/executable.h
Support building static libraries (but not using them yet)
[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 class Executable: public Target
10 {
11 public:
12         Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
13         const char *get_type() const { return "Executable"; }
14         const Component &get_component() const { return comp; }
15         void find_depends();
16         Action *build();
17 private:
18         const Component &comp;
19
20         static std::string generate_target_name(const Component &);
21 };
22
23 #endif