X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexecutable.h;h=a6ebb978175c46029ae804728418d3a423fc1efc;hb=242c55b17e6608b29a77ca17a5b677e202a3ca90;hp=e415668e9890de8ab6106fa72d8e8f6850ace991;hpb=77461a8c0e2b5686b04cf15f3a9333b215813992;p=builder.git diff --git a/source/executable.h b/source/executable.h index e415668..a6ebb97 100644 --- a/source/executable.h +++ b/source/executable.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -19,16 +19,19 @@ library. */ class Executable: public Target { +private: + const Component ∁ + public: Executable(Builder &, const Component &, const std::list &); - const char *get_type() const { return "Executable"; } + virtual const char *get_type() const { return "Executable"; } const Component &get_component() const { return comp; } - void find_depends(); + virtual void find_depends(); private: - const Component ∁ - - virtual Action *create_action(); + virtual Action *create_action(); + /** Returns the name for the executable. We can't do this in the + constructor since we need to pass the value to the Target c'tor. */ static std::string generate_target_name(const Component &); };