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

◆ get_system_includes()

std::vector< std::string > MayaFlux::Platform::SystemConfig::get_system_includes ( )
inlinestatic

The system include directories, in search order.

Definition at line 234 of file Toolchain.hpp.

235{
236 static Memory::SnapshotCell<std::vector<std::string>> cache;
237
238 return detail::memoize_nonempty(cache, [] {
239 std::vector<std::string> includes;
240
241#ifdef MAYAFLUX_PLATFORM_WINDOWS
242 auto msvc_includes = get_msvc_includes();
243 includes.insert(includes.end(), msvc_includes.begin(), msvc_includes.end());
244
245 auto sdk_includes = get_windows_sdk_includes();
246 includes.insert(includes.end(), sdk_includes.begin(), sdk_includes.end());
247#endif // MAYAFLUX_PLATFORM_WINDOWS
248
249 auto clang_includes = get_clang_includes();
250 includes.insert(includes.end(), clang_includes.begin(), clang_includes.end());
251
252#ifdef MAYAFLUX_PLATFORM_MACOS
253 std::string xcode_includes = SystemConfig::get_xcode_system_includes();
254 if (!xcode_includes.empty()) {
255 includes.push_back(xcode_includes);
256 }
257
258 if (const auto prefix = homebrew_prefix(); prefix && fs::exists(*prefix / "include")) {
259 includes.push_back((*prefix / "include").string());
260 }
261#endif // MAYAFLUX_PLATFORM_MACOS
262
263 return includes;
264 });
265}
static std::vector< std::string > get_clang_includes()
T memoize_nonempty(Memory::SnapshotCell< T > &cell, Compute &&compute)

References get_clang_includes(), and MayaFlux::Platform::detail::memoize_nonempty().

Referenced by Lila::ClangInterpreter::initialize(), and resolve_dependency_include().

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