//============================================================================== 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); }
String ProjectExporter::replacePreprocessorTokens (const ProjectExporter::BuildConfiguration& config, const String& sourceString) const { return replacePreprocessorDefs (getAllPreprocessorDefs (config), sourceString); }
String ProjectExporter::replacePreprocessorTokens (const ProjectExporter::BuildConfiguration& config, const String& sourceString) const { return replacePreprocessorDefs (getAllPreprocessorDefs (config, ProjectType::Target::unspecified), sourceString); }