]> git.tdb.fi Git - builder.git/blobdiff - source/sourcepackage.h
Replace DependencyCache with a more generic cache
[builder.git] / source / sourcepackage.h
index b8d19090eed92aa5d653589d14296d50829442b8..97c9b32eb8ffa233ca980892d704a3c5ea1d8d6b 100644 (file)
@@ -4,10 +4,10 @@
 #include <stdexcept>
 #include <string>
 #include "buildinfo.h"
+#include "cache.h"
 #include "component.h"
 #include "condition.h"
 #include "config.h"
-#include "dependencycache.h"
 #include "feature.h"
 #include "package.h"
 
@@ -65,7 +65,7 @@ private:
        BuildInfo build_info;
        ComponentList components;
        Config config;
-       mutable DependencyCache deps_cache;
+       mutable Cache cache;
 
 public:
        SourcePackage(Builder &, const std::string &, const Msp::FS::Path &);
@@ -82,7 +82,7 @@ public:
        const BuildInfo &get_build_info() const { return build_info; }
        Builder &get_builder() const { return builder; }
 
-       DependencyCache &get_dependency_cache() const { return deps_cache; }
+       Cache &get_cache() const { return cache; }
 private:
        virtual void create_build_info();