]> git.tdb.fi Git - builder.git/blobdiff - source/gnulinker.h
Redesign GnuLinker to work without subtools
[builder.git] / source / gnulinker.h
index 626894433505a10f2f959ad4b2544694a63d0ed6..c04afd1ffb580c2c618a107cec69e0cafbc20ff5 100644 (file)
@@ -3,13 +3,27 @@
 
 #include "tool.h"
 
+class Binary;
+
+/**
+The GNU linker.  Turns ObjectFiles into Executables and SharedLibraries.  To
+create a shared library, specify "shared" as the second argument to
+create_target.
+
+Uses either gcc or g++ depending on what was used to compile the object files.
+*/
 class GnuLinker: public Tool
 {
 public:
-       GnuLinker(Builder &);
+       GnuLinker(Builder &, const Architecture &);
 
-       virtual Target *create_target(const std::list<Target *> &, const std::string &) const;
-       virtual Task *run(const Target &) const;
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+       Target *create_install(Target &) const override;
+       std::string create_build_signature(const BuildInfo &) const override;
+protected:
+       void do_prepare() override;
+private:
+       static Task *_run(const Binary &);
 };
 
 #endif