//============================================================================== File Project::resolveFilename (String filename) const { if (filename.isEmpty()) return File::nonexistent; filename = replacePreprocessorDefs (getPreprocessorDefs(), filename); if (FileHelpers::isAbsolutePath (filename)) return File::createFileWithoutCheckingPath (FileHelpers::currentOSStylePath (filename)); // (avoid assertions for windows-style paths) return getFile().getSiblingFile (FileHelpers::currentOSStylePath (filename)); }
//============================================================================== const File Project::resolveFilename (String filename) const { if (filename.isEmpty()) return File::nonexistent; filename = replacePreprocessorDefs (getPreprocessorDefs(), filename); if (File::isAbsolutePath (filename)) return File (filename); return getFile().getSiblingFile (filename); }