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

◆ get_dep_includes()

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

Definition at line 162 of file HostEnvironment.cpp.

163{
164 static std::unordered_map<std::string, std::string> cache;
165
166 auto it = cache.find(library_name);
167 if (it != cache.end()) {
168 return it->second;
169 }
170
171 std::string& result = cache[library_name];
172 if (library_name == "Eigen" || library_name == "eigen") {
173 if (!Config::EIGEN_HINT.empty() && fs::exists(Config::EIGEN_HINT)) {
174 result = Config::EIGEN_HINT;
175 } else {
176 for (const auto& path : eigen_includes) {
177 if (std::filesystem::exists(path)) {
178 result = path;
179 break;
180 }
181 }
182 }
183 } else if (library_name == "freetype2" || library_name == "freetype") {
184 if (!Config::FREETYPE_HINT.empty() && fs::exists(Config::FREETYPE_HINT)) {
185 result = Config::FREETYPE_HINT;
186 } else {
187 for (const auto& path : freetype_includes) {
188 if (std::filesystem::exists(path)) {
189 result = path;
190 break;
191 }
192 }
193 }
194 }
195
196 return result;
197}

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

+ Here is the caller graph for this function: