]> git.tdb.fi Git - builder.git/blobdiff - source/executable.h
Add profile templates
[builder.git] / source / executable.h
index f118b8762b0ab568cc2ad8ae5e88a1299a754c5d..d7d8ebbea909fa3f1c853b1212d3827d1962e51c 100644 (file)
@@ -6,13 +6,18 @@
 class Component;
 class ObjectFile;
 
+/**
+Produces a binary file, which may be either a standalone executable or a shared
+library.
+*/
 class Executable: public Target
 {
 public:
        Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
-       const char *get_type() const { return "Executable"; }
-       void find_depends();
-       Action *build();
+       const char      *get_type() const      { return "Executable"; }
+       const Component &get_component() const { return comp; }
+       void            find_depends();
+       Action          *build();
 private:
        const Component &comp;