X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.h;h=13e2fd85ddc7a65397654400a9ece95913d308be;hb=1dad660f7bbda5ef3239fd6374e0f8a77e19eaaa;hp=a0f20e86e273f4ba79f23119afa04f13c3e0682f;hpb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;p=builder.git diff --git a/source/binarypackage.h b/source/binarypackage.h index a0f20e8..13e2fd8 100644 --- a/source/binarypackage.h +++ b/source/binarypackage.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef BINARYPACKAGE_H_ #define BINARYPACKAGE_H_ @@ -17,25 +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: + typedef std::list HeaderList; + + Msp::FS::Path base_path; + HeaderList headers; + +public: BinaryPackage(Builder &, const std::string &); - 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: - bool need_path; - Msp::FS::Path path; - - virtual void create_build_info(); + virtual void do_prepare(); }; #endif