X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.h;h=088c3e1eac2264dc94cf3a96de0a3e11b4947e30;hb=592fa2bca4e973678cbdc86802fe1c151b40e04d;hp=ff077f8c362ed385ce09152517038c0de3536977;hpb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;p=builder.git diff --git a/source/binarypackage.h b/source/binarypackage.h index ff077f8..088c3e1 100644 --- a/source/binarypackage.h +++ b/source/binarypackage.h @@ -10,33 +10,19 @@ 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(); }; -private: - bool need_path; - Msp::FS::Path path; - -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_pkgconfig(Builder &, const std::string &); + static BinaryPackage *from_flags(Builder &, const std::string &, const std::vector &); private: - virtual void create_build_info(); + virtual void do_prepare(); }; #endif