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

◆ acquire_library()

Acquired< LibraryLocation > MayaFlux::Platform::acquire_library ( const LibrarySource & source)
inlinenodiscard

Resolve a library request to a location the loader can open.

Each source kind has its own rule, and the compiler requires every kind to be handled. Relative paths resolve against the working directory. Names must be plain file names. A refusal lists the paths that were checked.

Parameters
sourceThe request, as one of the LibrarySource alternatives.
Returns
The resolved location, or the reason the request was refused.

Definition at line 285 of file Acquisition.hpp.

286{
287 return std::visit(detail::Overloaded {
288 [](const LibraryFromPath& from) { return detail::acquire_from_path(from); },
289 [](const LibraryFromPrefix& from) { return detail::acquire_from_prefix(from); },
290 [](const LibraryFromDirectories& from) { return detail::acquire_from_directories(from); },
291 [](const LibraryFromSystem& from) { return detail::acquire_from_system(from); } },
292 source);
293}
Acquired< LibraryLocation > acquire_from_prefix(const LibraryFromPrefix &from)
Acquired< LibraryLocation > acquire_from_system(const LibraryFromSystem &from)
Acquired< LibraryLocation > acquire_from_directories(const LibraryFromDirectories &from)
Acquired< LibraryLocation > acquire_from_path(const LibraryFromPath &from)
Source source()
Begin a Source chain.
Definition Plot.hpp:127
A shared library at an explicit file path, absolute or relative to the working directory.
A shared library the system loader resolves by its exact file name.

References MayaFlux::Platform::detail::acquire_from_directories(), MayaFlux::Platform::detail::acquire_from_path(), MayaFlux::Platform::detail::acquire_from_prefix(), and MayaFlux::Platform::detail::acquire_from_system().

Referenced by MayaFlux::Host::eval_file(), MayaFlux::Platform::SystemConfig::find_dep_library(), MayaFlux::Host::load_library(), and MayaFlux::Host::load_library_from_prefix().

Here is the call graph for this function:
Here is the caller graph for this function: