]> git.tdb.fi Git - builder.git/blobdiff - source/package.h
Add DependencyCache to speed up build preparation
[builder.git] / source / package.h
index 68af269a9c6b4d0575e0dedfba9ca9b5c0c2e924..90ee6bc510abc941262d884146c6d053db32f522 100644 (file)
@@ -15,6 +15,7 @@ Distributed under the LGPL
 #include "component.h"
 #include "condition.h"
 #include "config.h"
+#include "dependencycache.h"
 #include "feature.h"
 #include "packageref.h"
 
@@ -81,6 +82,7 @@ public:
        const std::string   &get_arch() const           { return config.get_option("arch").value; }
        LibMode             get_library_mode() const;
        const PathList      &get_tar_files() const      { return tar_files; }
+       DependencyCache     &get_deps_cache() const     { return deps_cache; }
        void                resolve_refs();
        void                configure(const StringMap &, unsigned);
 
@@ -103,6 +105,7 @@ private:
        ComponentList components;
        Config        config;
        bool          conf_done;
+       mutable DependencyCache deps_cache;
        PathList      tar_files;
 
        bool          use_pkgconfig;