Browse Source

Projucer: Use RelativePath for querying file extensions in Xcode exporter to correctly handle cross-platform paths

tags/2021-05-28
ed 4 years ago
parent
commit
1870e2d5fd
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 1
- 1
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -2834,7 +2834,7 @@ private:
static String getFileType (const String& filePath)
{
auto file = File::createFileWithoutCheckingPath (filePath);
build_tools::RelativePath file (filePath, build_tools::RelativePath::unknown);
if (file.hasFileExtension (cppFileExtensions)) return "sourcecode.cpp.cpp";
if (file.hasFileExtension (".mm")) return "sourcecode.cpp.objcpp";


Loading…
Cancel
Save