X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexecutable.h;h=e415668e9890de8ab6106fa72d8e8f6850ace991;hb=8d636197d4adf5e882e51ffd2ff86d959dd82d6b;hp=81637a7ae461f334a5866e02e0517eee6a37c5d5;hpb=4fcc283a4bb1f695bd124006906bcdaba053193f;p=builder.git diff --git a/source/executable.h b/source/executable.h index 81637a7..e415668 100644 --- a/source/executable.h +++ b/source/executable.h @@ -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_ @@ -6,17 +13,22 @@ 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 &); - const char *get_type() const { return "Executable"; } + const char *get_type() const { return "Executable"; } const Component &get_component() const { return comp; } - void find_depends(); - Action *build(); + void find_depends(); private: const Component ∁ + virtual Action *create_action(); + static std::string generate_target_name(const Component &); };