X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcepackage.h;h=e170399aa4ab14db6abd94a3b7bc1f17f884db66;hb=699493ee7346c578537f4e310702c57012686c22;hp=b8750ee393f3d0946818297c58301840edd5f54e;hpb=242c55b17e6608b29a77ca17a5b677e202a3ca90;p=builder.git diff --git a/source/sourcepackage.h b/source/sourcepackage.h index b8750ee..e170399 100644 --- a/source/sourcepackage.h +++ b/source/sourcepackage.h @@ -27,10 +27,10 @@ class SourcePackage: public Package public: enum InstallFlags { - INCLUDE=1, - BIN=2, - LIB=4, - DATA=8 + INCLUDE = 1, + BIN = 2, + LIB = 4, + DATA = 8 }; class Loader: public Package::Loader @@ -39,13 +39,13 @@ public: Loader(Package &); SourcePackage &get_object() { return static_cast(pkg); } private: + virtual void finish(); void feature(const std::string &, const std::string &); + template + void component(const std::string &); void condition(const std::string &); - void program(const std::string &); - void library(const std::string &); - void module(const std::string &); - void headers(const std::string &); void build_info(); + void tarball(const std::string &); void tar_file(const std::string &); }; @@ -54,15 +54,12 @@ private: std::string description; Msp::FS::Path source; - PackageList base_reqs; FeatureList features; BuildInfo build_info; ConditionList conditions; ComponentList components; Config config; - bool conf_done; mutable DependencyCache deps_cache; - PathList tar_files; public: SourcePackage(Builder &, const std::string &, const Msp::FS::Path &); @@ -83,7 +80,6 @@ public: unsigned get_install_flags(); LibMode get_library_mode() const; - const PathList &get_tar_files() const { return tar_files; } DependencyCache &get_deps_cache() const { return deps_cache; } private: virtual void do_configure(const StringMap &, unsigned);