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

◆ get_dep_includes()

std::string MayaFlux::Platform::SystemConfig::get_dep_includes ( const std::string & library_name)
inlinestatic

The include directory of a named dependency, or empty.

Definition at line 309 of file Toolchain.hpp.

310{
311 static Memory::SnapshotCell<Memory::FlatMap<std::string, std::string>> cache;
312
313 if (const auto view = cache.read()) {
314 if (const auto hit = view->find(library_name); hit != view->end()) {
315 return hit->second;
316 }
317 }
318
319 std::string result;
320 if (const auto* hint = find_dependency_hint(library_name)) {
321 result = resolve_dependency_include(*hint);
322 }
323
324 if (!result.empty()) {
325 cache.update([&](Memory::FlatMap<std::string, std::string>& entries) {
326 entries.insert_or_assign(library_name, result);
327 });
328 }
329
330 return result;
331}
static std::string resolve_dependency_include(const DependencyHint &hint)
const DependencyHint * find_dependency_hint(std::string_view name)

References MayaFlux::Platform::find_dependency_hint(), MayaFlux::Memory::FlatMap< K, V, Compare >::insert_or_assign(), MayaFlux::Memory::SnapshotCell< T >::read(), resolve_dependency_include(), and MayaFlux::Memory::SnapshotCell< T >::update().

Referenced by Lila::ClangInterpreter::initialize().

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