X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualfilesystem.h;h=a3327de2490001c1f3e3c349ac284e66fb9c7611;hb=f5413fd8f007164591af26be9ded15ee7c707540;hp=aef6ab09392a6cafc83a1f68d58abb295a6f709b;hpb=903a5727ef1f8a7f540e162139396163c736d484;p=builder.git diff --git a/source/virtualfilesystem.h b/source/virtualfilesystem.h index aef6ab0..a3327de 100644 --- a/source/virtualfilesystem.h +++ b/source/virtualfilesystem.h @@ -3,7 +3,9 @@ #include #include +#include #include +#include "buildinfo.h" class Builder; class FileTarget; @@ -38,14 +40,21 @@ public: void register_path(const Msp::FS::Path &, FileTarget *); /** Locates a source file. If a file is found but no target is associated - with it, a new package-less target is created with the appropriate tool. */ - FileTarget *find_header(const std::string &, const SearchPath &); + with it, a new package-less target is created with the appropriate tool. If + use_syspath is true, the system path reported by the tool is also searched. */ + FileTarget *find_header(const std::string &, Tool *, const SearchPath &, bool use_syspath = true); /** Locates a library. The library name should be the same as what would be used in linking with the library. If a file is found but no target is associated with it, a new package-less target of appropriate type is - created. */ - FileTarget *find_library(const std::string &, const SearchPath &, LibMode); + created. If use_syspath is true, the system path reported by the LINK tool + is also searched. */ + FileTarget *find_library(const std::string &, const SearchPath &, BuildInfo::LibraryMode, bool use_syspath = true); + + /** Locates a binary. The normal search path for binaries is used (usually + this means the PATH environment variable). If a file is found but no target + is associated with it, a new package-less Executable target is created. */ + FileTarget *find_binary(const std::string &); private: bool file_exists(const Msp::FS::Path &);