]> git.tdb.fi Git - builder.git/blob - source/binary.h
Add build info to tools and use it to pass runtime libs
[builder.git] / source / binary.h
1 #ifndef BINARY_H_
2 #define BINARY_H_
3
4 #include "filetarget.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 Binary: public FileTarget
14 {
15 protected:
16         std::list<ObjectFile *> objects;
17
18         Binary(Builder &, const Msp::FS::Path &);
19         Binary(Builder &, const Component &, const std::string &, const std::list<ObjectFile *> &);
20
21 public:
22         virtual void collect_build_info(BuildInfo &) const;
23
24 protected:
25         virtual void find_dependencies();
26 };
27
28 #endif