]> git.tdb.fi Git - builder.git/blobdiff - source/virtualfilesystem.h
Rewrite the find_* functions
[builder.git] / source / virtualfilesystem.h
index b19d10e8b45382ae9d18f89d77a7eb55546fe885..f0cb7383fc9e26ea093d558cbb5bc2885d574f89 100644 (file)
@@ -24,8 +24,7 @@ private:
 
        Builder &builder;
        TargetMap targets;
-       TargetMap include_cache;
-       TargetMap library_cache;
+       std::set<Msp::FS::Path> nonexistent;
 
 public:
        VirtualFileSystem(Builder &);
@@ -47,9 +46,7 @@ public:
        FileTarget *find_library(const std::string &, const SearchPath &, LibMode);
 
 private:
-       FileTarget *get_header(const Msp::FS::Path &, const Tool &);
-       FileTarget *get_library(const std::string &, const Msp::FS::Path &, LibMode);
-       Msp::FS::Path try_patterns(const Msp::FS::Path &, const std::list<Pattern> &, const std::string &);
+       bool file_exists(const Msp::FS::Path &);
 };
 
 #endif