String ProjectExporter::getIncludePathForFileInJuceFolder (const String& pathFromJuceFolder, const File& targetIncludeFile) const { String juceFolderPath (getJuceFolderString()); if (juceFolderPath.startsWithChar ('<')) { juceFolderPath = FileHelpers::unixStylePath (File::addTrailingSeparator (juceFolderPath.substring (1).dropLastCharacters(1))); if (juceFolderPath == "/") juceFolderPath = String::empty; return "<" + juceFolderPath + pathFromJuceFolder + ">"; } else { const RelativePath juceFromProject (juceFolderPath, RelativePath::projectFolder); const RelativePath fileFromProject (juceFromProject.getChildFile (pathFromJuceFolder)); const RelativePath fileFromHere (fileFromProject.rebased (project.getFile().getParentDirectory(), targetIncludeFile.getParentDirectory(), RelativePath::unknown)); return fileFromHere.toUnixStyle().quoted(); } }
RelativePath ProjectExporter::getJucePathFromProjectFolder() const { return RelativePath (getJuceFolderString(), RelativePath::projectFolder); }