X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexecutable.h;h=e9c99abf5d63e1998df28b78a4024d8ce6131194;hb=bde362811368647047f3ca13bdec596f092ecffe;hp=7d6ea28b46d70b8e656573a1826a690e0d4a9b95;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/executable.h b/source/executable.h index 7d6ea28..e9c99ab 100644 --- a/source/executable.h +++ b/source/executable.h @@ -1,34 +1,15 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef EXECUTABLE_H_ #define EXECUTABLE_H_ -#include "target.h" - -class Component; -class ObjectFile; +#include "binary.h" -/** -Produces a binary file, which may be either a standalone executable or a shared -library. -*/ -class Executable: public Target +class Executable: public Binary { public: + Executable(Builder &, const Msp::FS::Path &); Executable(Builder &, const Component &, const std::list &); - const char *get_type() const { return "Executable"; } - const Component &get_component() const { return comp; } - void find_depends(); - Action *build(); -private: - const Component ∁ - static std::string generate_target_name(const Component &); + const char *get_type() const override { return "Executable"; } }; #endif