]> git.tdb.fi Git - builder.git/blobdiff - source/executable.h
Mark overridden virtual functions as such
[builder.git] / source / executable.h
index d7d8ebbea909fa3f1c853b1212d3827d1962e51c..e9c99abf5d63e1998df28b78a4024d8ce6131194 100644 (file)
@@ -1,27 +1,15 @@
 #ifndef EXECUTABLE_H_
 #define EXECUTABLE_H_
 
-#include "target.h"
+#include "binary.h"
 
-class Component;
-class ObjectFile;
-
-/**
-Produces a binary file, which may be either a standalone executable or a shared
-library.
-*/
-class Executable: public Target
+class Executable: public Binary
 {
 public:
+       Executable(Builder &, const Msp::FS::Path &);
        Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
-       const char      *get_type() const      { return "Executable"; }
-       const Component &get_component() const { return comp; }
-       void            find_depends();
-       Action          *build();
-private:
-       const Component &comp;
 
-       static std::string generate_target_name(const Component &);
+       const char *get_type() const override { return "Executable"; }
 };
 
 #endif