-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef EXECUTABLE_H_
#define EXECUTABLE_H_
-#include "target.h"
+#include "binary.h"
-class Component;
-class ObjectFile;
-
-/**
-Produces a binary file, which may be either a standalone executable or a shared
-library.
-*/
-class Executable: public Target
+class Executable: public Binary
{
-private:
- const Component ∁
-
public:
+ Executable(Builder &, const Msp::FS::Path &);
Executable(Builder &, const Component &, const std::list<ObjectFile *> &);
- virtual const char *get_type() const { return "Executable"; }
- const Component &get_component() const { return comp; }
- virtual void find_depends();
private:
- virtual Action *create_action();
+ static std::string generate_filename(const Component &);
- /** 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 &);
+public:
+ virtual const char *get_type() const { return "Executable"; }
};
#endif