]> git.tdb.fi Git - builder.git/blobdiff - source/virtualfilesystem.h
Make VirtualFileSystem able to find binaries
[builder.git] / source / virtualfilesystem.h
index aef6ab09392a6cafc83a1f68d58abb295a6f709b..a2ce05c4dad880c7f1bfea7c790a4d72c67a3256 100644 (file)
@@ -47,6 +47,11 @@ public:
        created. */
        FileTarget *find_library(const std::string &, const SearchPath &, LibMode);
 
+       /** 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 &);
 };