X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.h;h=8c0d0e9ec39c7a741c94fe908a8f92aa08d74803;hb=1d687970cc35e54c3335f4aa2fdef23424fe0a06;hp=a0f20e86e273f4ba79f23119afa04f13c3e0682f;hpb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;p=builder.git diff --git a/source/binarypackage.h b/source/binarypackage.h index a0f20e8..8c0d0e9 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_ @@ -26,15 +19,23 @@ public: 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: - bool need_path; - Msp::FS::Path path; - virtual void create_build_info(); };