MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ load_library_from_prefix()

MAYAFLUX_HOST_API Result< std::filesystem::path > MayaFlux::Host::load_library_from_prefix ( const std::filesystem::path & prefix,
std::string_view base_name )

Load a shared library by name from one prefix.

Candidates are tried under lib, lib64 and bin of the prefix, using the platform's file name for base_name first and base_name as written last.

Parameters
prefixInstall prefix to search.
base_namePlain library name, e.g. "Dust" or "libDust".
Returns
The canonical path, or every path that was tried.

Definition at line 75 of file Dependencies.cpp.

78{
79 return load_acquired(Platform::acquire_library(
80 Platform::LibraryFromPrefix { prefix, std::string(base_name) }));
81}
Acquired< LibraryLocation > acquire_library(const LibrarySource &source)
Resolve a library request to a location the loader can open.
A shared library given by name, searched under one prefix.

References MayaFlux::Platform::acquire_library().

Here is the call graph for this function: