X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinary.h;h=7581541bd3d9d1a726e273460ecbbd02d56e47fd;hb=8ee4fd693c8d15265f0c145221737a322f89618b;hp=7c1a701bcc973e43f675346819e0df4a10f80c01;hpb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;p=builder.git diff --git a/source/binary.h b/source/binary.h index 7c1a701..7581541 100644 --- a/source/binary.h +++ b/source/binary.h @@ -10,21 +10,19 @@ 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 Msp::FS::Path &); + Binary(Builder &, const Component &, const std::string &, const std::list &); - Binary(Builder &, const Component &, const std::list &); public: - const Component &get_component() const { return comp; } - virtual void find_depends(); -protected: - virtual Action *create_action(); + virtual void collect_build_info(BuildInfo &) const; - /** 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 &); +protected: + virtual void find_dependencies(); }; #endif