1 #ifndef BINARYPACKAGE_H_
2 #define BINARYPACKAGE_H_
7 Represents a package that is installed on the system, but can't be built by
10 class BinaryPackage: public Package
13 class Loader: public Msp::DataFile::DerivedObjectLoader<BinaryPackage, Package::Loader>
16 Loader(BinaryPackage &);
19 void header(const std::string &);
22 using Flags = std::vector<std::string>;
25 Msp::FS::Path base_path;
26 std::list<std::string> headers;
27 BuildInfo static_binfo;
30 BinaryPackage(Builder &, const std::string &);
32 const BuildInfo &get_static_build_info() const { return static_binfo; }
34 static BinaryPackage *from_flags(Builder &, const std::string &, const Flags &, const Flags & = Flags());
36 static void process_flags(const Flags &, BuildInfo &);
37 void do_prepare() override;