]> git.tdb.fi Git - builder.git/blobdiff - source/binary.h
Convert all list containers to vectors
[builder.git] / source / binary.h
index 8e6761f6c434ea7fa4dbfd8fafb47658071859eb..16ed1ecf95148b6c028a727dbb40d0af49946216 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef BINARY_H_
 #define BINARY_H_
 
+#include "buildinfo.h"
 #include "filetarget.h"
 
 class Component;
@@ -12,12 +13,22 @@ library.
 */
 class Binary: public FileTarget
 {
+private:
+       BuildInfo static_binfo;
+
 protected:
+       std::vector<ObjectFile *> objects;
+
        Binary(Builder &, const Msp::FS::Path &);
-       Binary(Builder &, const Component &, const std::string &, const std::list<ObjectFile *> &);
+       Binary(Builder &, const Component &, const std::string &, const std::vector<ObjectFile *> &);
 
 public:
-       virtual void find_dependencies();
+       void collect_build_info(BuildInfo &) const override;
+
+protected:
+       void find_dependencies() override;
+private:
+       void find_dependencies(Target *, std::vector<Target *> &, std::vector<Target *> &, std::vector<std::string> &);
 };
 
 #endif