]> git.tdb.fi Git - builder.git/blobdiff - source/binary.h
Mark overridden virtual functions as such
[builder.git] / source / binary.h
index ef71a0691b6101df2661d59bf626a42e75978691..a8d10f0384008a9599a8a001b5a6c87294e63ca2 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef BINARY_H_
 #define BINARY_H_
 
+#include "buildinfo.h"
 #include "filetarget.h"
 
 class Component;
@@ -12,15 +13,20 @@ library.
 */
 class Binary: public FileTarget
 {
+private:
+       BuildInfo static_binfo;
+
 protected:
+       std::list<ObjectFile *> objects;
+
        Binary(Builder &, const Msp::FS::Path &);
-       Binary(Builder &, const Component &, const std::list<ObjectFile *> &);
+       Binary(Builder &, const Component &, const std::string &, const std::list<ObjectFile *> &);
+
 public:
-       virtual void find_depends();
+       void collect_build_info(BuildInfo &) const override;
+
 protected:
-       /** Returns the path for the binary.  We can't do this in the constructor
-       since we need to pass the value to the Target c'tor. */
-       static Msp::FS::Path generate_target_path(const Component &);
+       void find_dependencies() override;
 };
 
 #endif