32 std::filesystem::path bin_root_;
33 std::filesystem::path src_root_;
39 const std::filesystem::path&
bin_root()
const {
return bin_root_; }
40 const std::filesystem::path&
src_root()
const {
return src_root_; }
43 static std::unique_ptr<DefaultDoccPaths>
from_lib_location(std::optional<std::filesystem::path> lib_location);
44 static std::unique_ptr<DefaultDoccPaths>
from_root(
const std::string_view& root);
52 std::optional<std::filesystem::path>
std::optional< std::filesystem::path > get_builtin_target_plugin_rt_lib_path(const std::string &plugin) const
static std::unique_ptr< DefaultDoccPaths > from_root(const std::string_view &root)
std::vector< std::filesystem::path > get_default_library_paths() const override
DefaultDoccPaths(std::filesystem::path bin_root, std::filesystem::path src_root, DoccRootMode root_mode)
const std::filesystem::path & bin_root() const
Definition docc_paths.h:39
std::optional< std::filesystem::path > get_builtin_target_plugin_src_path(const std::string &plugin) const
DoccRootMode root_mode() const
Definition docc_paths.h:41
std::optional< std::filesystem::path > get_builtin_target_plugin_rt_libexec_src_path(const std::string &plugin, const std::string &rt_name) const
const std::filesystem::path & src_root() const
Definition docc_paths.h:40
static std::unique_ptr< DefaultDoccPaths > from_lib_location(std::optional< std::filesystem::path > lib_location)
std::vector< std::filesystem::path > get_default_include_paths() const override
std::optional< std::filesystem::path > get_builtin_target_plugin_rt_include_path(const std::string &plugin) const
DoccRootMode
Definition docc_paths.h:23
@ GlobalDist
Definition docc_paths.h:27
@ Dist
Definition docc_paths.h:28
@ Pip
Definition docc_paths.h:26
@ None
Definition docc_paths.h:24
@ CMake
Definition docc_paths.h:25
Definition docc_paths.h:13
virtual std::vector< std::filesystem::path > get_default_include_paths() const =0
virtual ~DoccPaths()=default
virtual std::vector< std::filesystem::path > get_default_library_paths() const =0
Definition cuda_query_compute_capability.h:8
std::optional< std::filesystem::path > find_lib_location()