]> git.tdb.fi Git - builder.git/blobdiff - source/binary.h
Collect libpath for static library dependencies from the libs themselves
[builder.git] / source / binary.h
index ef71a0691b6101df2661d59bf626a42e75978691..d763dd572f97b084a9f9c7aa0b5bd831eaa632ac 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();
+       virtual void collect_build_info(BuildInfo &) const;
+
 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 &);
+       virtual void find_dependencies();
 };
 
 #endif