X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinary.h;h=b689a1d4fab8368f2ccd45a23dd7e57129a1a889;hb=7c61a1e64153bac91431e1a72d946208dd61eb30;hp=cb9a56eb75814cdba42d4580ef3ae697067d87de;hpb=66d1078c04849ec17a7343d0494d6ed087e04318;p=builder.git diff --git a/source/binary.h b/source/binary.h index cb9a56e..b689a1d 100644 --- a/source/binary.h +++ b/source/binary.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef BINARY_H_ #define BINARY_H_ @@ -17,21 +10,17 @@ class ObjectFile; Produces a binary file, which may be either a standalone executable or a shared library. */ -class Binary: public virtual FileTarget +class Binary: public FileTarget { protected: - const Component ∁ + std::list objects; - Binary(Builder &, const Component &, const std::list &); -public: - const Component &get_component() const { return comp; } - virtual void find_depends(); -protected: - virtual Action *create_action(); + Binary(Builder &, const Msp::FS::Path &); + Binary(Builder &, const Component &, const std::string &, const std::list &); + + virtual void find_dependencies(); - /** Returns the path for the binary. We can't do this in the constructor - since we need to pass the value to the Target c'tor. */ - static Msp::FS::Path generate_target_path(const Component &); + virtual std::string create_build_signature() const; }; #endif