X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.h;h=13e2fd85ddc7a65397654400a9ece95913d308be;hb=8ee4fd693c8d15265f0c145221737a322f89618b;hp=8c0d0e9ec39c7a741c94fe908a8f92aa08d74803;hpb=1d687970cc35e54c3335f4aa2fdef23424fe0a06;p=builder.git diff --git a/source/binarypackage.h b/source/binarypackage.h index 8c0d0e9..13e2fd8 100644 --- a/source/binarypackage.h +++ b/source/binarypackage.h @@ -10,33 +10,27 @@ Builder. class BinaryPackage: public Package { public: - class Loader: public Package::Loader + class Loader: public Msp::DataFile::DerivedObjectLoader { public: Loader(BinaryPackage &); - BinaryPackage &get_object() { return static_cast(pkg); } private: void build_info(); + void header(const std::string &); }; private: - bool need_path; - Msp::FS::Path path; + typedef std::list HeaderList; + + Msp::FS::Path base_path; + HeaderList headers; public: BinaryPackage(Builder &, const std::string &); - /** - Sets the path where the package's files were installed. This is only useful - if the package doesn't use pkg-config. - */ - void set_path(const Msp::FS::Path &); - - bool get_need_path() const { return need_path; } - static BinaryPackage *from_flags(Builder &, const std::string &, const std::vector &); private: - virtual void create_build_info(); + virtual void do_prepare(); }; #endif