X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexecutable.h;h=e415668e9890de8ab6106fa72d8e8f6850ace991;hb=bdc8b6638b486aa668b4a9c6c5cce5f6b5f18222;hp=7fefef7a469326246b706b0f5f72d4a7282f3add;hpb=1a46151c99a406123c4ddfc797a7841baf3e4cc2;p=builder.git diff --git a/source/executable.h b/source/executable.h index 7fefef7..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,6 +13,10 @@ class Component; class ObjectFile; +/** +Produces a binary file, which may be either a standalone executable or a shared +library. +*/ class Executable: public Target { public: @@ -13,10 +24,11 @@ public: const char *get_type() const { return "Executable"; } const Component &get_component() const { return comp; } void find_depends(); - Action *build(); private: const Component ∁ + virtual Action *create_action(); + static std::string generate_target_name(const Component &); };