]> git.tdb.fi Git - builder.git/blobdiff - source/executable.h
Add Id tag to all files
[builder.git] / source / executable.h
index f118b8762b0ab568cc2ad8ae5e88a1299a754c5d..7d6ea28b46d70b8e656573a1826a690e0d4a9b95 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef EXECUTABLE_H_
 #define EXECUTABLE_H_
 
 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;