X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.h;h=62a8acf3fc6ba70bc2a2d2c215c7359cf8b8a5d9;hb=6b84e1f5673888753cbe566c1365222ed33fd3ac;hp=b47d468fe138ccf761c64d88b1f3169c2b3a51f6;hpb=c51884994862b02613c2c0ae75b1f8d39e0f1ee5;p=builder.git diff --git a/source/binarypackage.h b/source/binarypackage.h index b47d468..62a8acf 100644 --- a/source/binarypackage.h +++ b/source/binarypackage.h @@ -10,32 +10,31 @@ Builder. class BinaryPackage: public Package { public: - class Loader: public Msp::DataFile::DerivedObjectLoader + class Loader: public Msp::DataFile::DerivedObjectLoader { public: Loader(BinaryPackage &); private: void build_info(); + void header(const std::string &); }; + using Flags = std::vector; + private: - bool need_path; - Msp::FS::Path path; + Msp::FS::Path base_path; + std::vector headers; + BuildInfo static_binfo; 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; } + const BuildInfo &get_static_build_info() const { return static_binfo; } - static BinaryPackage *from_flags(Builder &, const std::string &, const std::vector &); + static BinaryPackage *from_flags(Builder &, const std::string &, const Flags &, const Flags & = Flags()); private: - virtual void create_build_info(); + static void process_flags(const Flags &, BuildInfo &); + void do_prepare() override; }; #endif