]> git.tdb.fi Git - builder.git/blobdiff - source/executable.h
Add support for statically linking the C++ standard library
[builder.git] / source / executable.h
index 7fefef7a469326246b706b0f5f72d4a7282f3add..967aaf97c7ec0c8044eaf0c48965122029732eb5 100644 (file)
@@ -1,23 +1,18 @@
 #ifndef EXECUTABLE_H_
 #define EXECUTABLE_H_
 
-#include "target.h"
+#include "binary.h"
 
-class Component;
-class ObjectFile;
-
-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_filename(const Component &);
 
-       static std::string generate_target_name(const Component &);
+public:
+       virtual const char *get_type() const { return "Executable"; }
 };
 
 #endif